1 #ifndef _LINUX_MINIX_FS_H
2 #define _LINUX_MINIX_FS_H
4 #include <linux/magic.h>
7 * The minix filesystem constants/structures
11 * Thanks to Kees J Bot for sending me the definitions of the new
12 * minix filesystem (aka V2) with bigger inodes and 32-bit block
16 #define MINIX_ROOT_INO 1
18 /* Not the same as the bogus LINK_MAX in <linux/limits.h>. Oh well. */
19 #define MINIX_LINK_MAX 250
20 #define MINIX2_LINK_MAX 65530
22 #define MINIX_I_MAP_SLOTS 8
23 #define MINIX_Z_MAP_SLOTS 64
24 #define MINIX_VALID_FS 0x0001 /* Clean fs. */
25 #define MINIX_ERROR_FS 0x0002 /* fs has errors. */
27 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
30 * This is the original minix inode layout on disk.
31 * Note the 8-bit gid and atime and ctime.
44 * The new minix inode has all the time entries, as well as
45 * long block numbers and a third indirect block (7+1+1+1
46 * instead of 7+1+1). Also, some previously 8-bit values are
47 * now 16-bit. The inode is now 64 bytes instead of 32.
62 * minix super-block data on disk
64 struct minix_super_block {
69 __u16 s_firstdatazone;
70 __u16 s_log_zone_size;
78 * V3 minix super-block data on disk
80 struct minix3_super_block {
85 __u16 s_firstdatazone;
86 __u16 s_log_zone_size;
96 struct minix_dir_entry {
101 struct minix3_dir_entry {