Sync with cat.c from netbsd-8
[minix3.git] / minix / usr.sbin / mkfs.mfs / v1 / type.h
blobda1d3000ab199b1bce289b411a6a44961b859efe
1 #ifndef _MKFS_MFS_TYPE_H__
2 #define _MKFS_MFS_TYPE_H__
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 */
15 /* Note: in V1 there was only one kind of timestamp kept in inodes! */
16 #define MFS_INODE_ONLY_MTIME
18 #endif