2013-04-26 20:54:22 +02:00
|
|
|
#ifndef _MKFS_MFS_TYPE_H__
|
|
|
|
#define _MKFS_MFS_TYPE_H__
|
2012-06-12 20:45:29 +02:00
|
|
|
|
2013-04-27 17:52:14 +02:00
|
|
|
/* Declaration of the V2/V3 inode as it is on the disk (not in core). */
|
2013-04-26 20:54:22 +02:00
|
|
|
struct inode { /* V2/V3 disk inode */
|
|
|
|
uint16_t i_mode; /* file type, protection, etc. */
|
|
|
|
uint16_t i_nlinks; /* how many links to this file. */
|
2013-04-27 17:52:14 +02:00
|
|
|
uint16_t i_uid; /* user id of the file's owner. */
|
2013-04-26 20:54:22 +02:00
|
|
|
uint16_t i_gid; /* group number */
|
|
|
|
uint32_t i_size; /* current file size in bytes */
|
|
|
|
uint32_t i_atime; /* when was file data last accessed */
|
|
|
|
uint32_t i_mtime; /* when was file data last changed */
|
|
|
|
uint32_t i_ctime; /* when was inode data last changed */
|
|
|
|
uint32_t i_zone[NR_TZONES]; /* zone nums for direct, ind, and dbl ind */
|
2012-06-12 20:45:29 +02:00
|
|
|
};
|
|
|
|
#endif
|