xref: /minix3/minix/usr.sbin/mkfs.mfs/v1/type.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 #ifndef _MKFS_MFS_TYPE_H__
2 #define _MKFS_MFS_TYPE_H__
3 
4 /* Declaration of the V1 inode as it is on the disk (not in core). */
5 struct inode {	/* V1 disk inode */
6   uint16_t i_mode;		/* file type, protection, etc. */
7   uint16_t i_uid;		/* user id of the file's owner. */
8   uint32_t i_size;		/* current file size in bytes */
9   uint32_t i_mtime;		/* when was file data last changed */
10   uint8_t i_gid;		/* group number */
11   uint8_t i_nlinks;		/* how many links to this file. */
12   uint16_t i_zone[NR_TZONES];	/* zone nums for direct, ind, and dbl ind */
13 };
14 
15 /* Note: in V1 there was only one kind of timestamp kept in inodes! */
16 #define	MFS_INODE_ONLY_MTIME
17 
18 #endif
19