1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX_MINIX_FS_H 8 #define _LINUX_MINIX_FS_H 9 #include <linux/types.h> 10 #include <linux/magic.h> 11 #define MINIX_ROOT_INO 1 12 #define MINIX_LINK_MAX 250 13 #define MINIX2_LINK_MAX 65530 14 #define MINIX_I_MAP_SLOTS 8 15 #define MINIX_Z_MAP_SLOTS 64 16 #define MINIX_VALID_FS 0x0001 17 #define MINIX_ERROR_FS 0x0002 18 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE) / (sizeof(struct minix_inode))) 19 struct minix_inode { 20 __u16 i_mode; 21 __u16 i_uid; 22 __u32 i_size; 23 __u32 i_time; 24 __u8 i_gid; 25 __u8 i_nlinks; 26 __u16 i_zone[9]; 27 }; 28 struct minix2_inode { 29 __u16 i_mode; 30 __u16 i_nlinks; 31 __u16 i_uid; 32 __u16 i_gid; 33 __u32 i_size; 34 __u32 i_atime; 35 __u32 i_mtime; 36 __u32 i_ctime; 37 __u32 i_zone[10]; 38 }; 39 struct minix_super_block { 40 __u16 s_ninodes; 41 __u16 s_nzones; 42 __u16 s_imap_blocks; 43 __u16 s_zmap_blocks; 44 __u16 s_firstdatazone; 45 __u16 s_log_zone_size; 46 __u32 s_max_size; 47 __u16 s_magic; 48 __u16 s_state; 49 __u32 s_zones; 50 }; 51 struct minix3_super_block { 52 __u32 s_ninodes; 53 __u16 s_pad0; 54 __u16 s_imap_blocks; 55 __u16 s_zmap_blocks; 56 __u16 s_firstdatazone; 57 __u16 s_log_zone_size; 58 __u16 s_pad1; 59 __u32 s_max_size; 60 __u32 s_zones; 61 __u16 s_magic; 62 __u16 s_pad2; 63 __u16 s_blocksize; 64 __u8 s_disk_version; 65 }; 66 struct minix_dir_entry { 67 __u16 inode; 68 char name[]; 69 }; 70 struct minix3_dir_entry { 71 __u32 inode; 72 char name[]; 73 }; 74 #endif 75