1 #ifndef _MKFS_MFS_TYPE_H__
2 #define _MKFS_MFS_TYPE_H__
4 /* Declaration of the V2 inode as it is on the disk (not in core). */
5 /* The same structure is used for V3. */
6 struct inode
{ /* V2/V3 disk inode */
7 uint16_t i_mode
; /* file type, protection, etc. */
8 uint16_t i_nlinks
; /* how many links to this file. */
9 int16_t i_uid
; /* user id of the file's owner. */
10 uint16_t i_gid
; /* group number */
11 uint32_t i_size
; /* current file size in bytes */
12 uint32_t i_atime
; /* when was file data last accessed */
13 uint32_t i_mtime
; /* when was file data last changed */
14 uint32_t i_ctime
; /* when was inode data last changed */
15 uint32_t i_zone
[NR_TZONES
]; /* zone nums for direct, ind, and dbl ind */