1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _LINUX_MINIX_FS_H 20 #define _LINUX_MINIX_FS_H 21 #include <linux/types.h> 22 #include <linux/magic.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define MINIX_ROOT_INO 1 25 #define MINIX_LINK_MAX 250 26 #define MINIX2_LINK_MAX 65530 27 #define MINIX_I_MAP_SLOTS 8 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define MINIX_Z_MAP_SLOTS 64 30 #define MINIX_VALID_FS 0x0001 31 #define MINIX_ERROR_FS 0x0002 32 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE) / (sizeof(struct minix_inode))) 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 struct minix_inode { 35 __u16 i_mode; 36 __u16 i_uid; 37 __u32 i_size; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u32 i_time; 40 __u8 i_gid; 41 __u8 i_nlinks; 42 __u16 i_zone[9]; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 }; 45 struct minix2_inode { 46 __u16 i_mode; 47 __u16 i_nlinks; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u16 i_uid; 50 __u16 i_gid; 51 __u32 i_size; 52 __u32 i_atime; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u32 i_mtime; 55 __u32 i_ctime; 56 __u32 i_zone[10]; 57 }; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 struct minix_super_block { 60 __u16 s_ninodes; 61 __u16 s_nzones; 62 __u16 s_imap_blocks; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u16 s_zmap_blocks; 65 __u16 s_firstdatazone; 66 __u16 s_log_zone_size; 67 __u32 s_max_size; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u16 s_magic; 70 __u16 s_state; 71 __u32 s_zones; 72 }; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 struct minix3_super_block { 75 __u32 s_ninodes; 76 __u16 s_pad0; 77 __u16 s_imap_blocks; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 __u16 s_zmap_blocks; 80 __u16 s_firstdatazone; 81 __u16 s_log_zone_size; 82 __u16 s_pad1; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 __u32 s_max_size; 85 __u32 s_zones; 86 __u16 s_magic; 87 __u16 s_pad2; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u16 s_blocksize; 90 __u8 s_disk_version; 91 }; 92 struct minix_dir_entry { 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 __u16 inode; 95 char name[0]; 96 }; 97 struct minix3_dir_entry { 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 __u32 inode; 100 char name[0]; 101 }; 102 #endif 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104