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_EXT3_FS_H 20 #define _LINUX_EXT3_FS_H 21 #include <linux/types.h> 22 #undef EXT3FS_DEBUG 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define EXT3_DEFAULT_RESERVE_BLOCKS 8 25 #define EXT3_MAX_RESERVE_BLOCKS 1027 26 #define EXT3_RESERVE_WINDOW_NOT_ALLOCATED 0 27 #define CONFIG_EXT3_INDEX 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #ifdef EXT3FS_DEBUG 30 #define ext3_debug(f, a...) do { printk (KERN_DEBUG "EXT3-fs DEBUG (%s, %d): %s:", __FILE__, __LINE__, __FUNCTION__); printk (KERN_DEBUG f, ## a); } while (0) 31 #else 32 #define ext3_debug(f, a...) do {} while (0) 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #endif 35 #define EXT3_BAD_INO 1 36 #define EXT3_ROOT_INO 2 37 #define EXT3_BOOT_LOADER_INO 5 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define EXT3_UNDEL_DIR_INO 6 40 #define EXT3_RESIZE_INO 7 41 #define EXT3_JOURNAL_INO 8 42 #define EXT3_GOOD_OLD_FIRST_INO 11 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define EXT3_SUPER_MAGIC 0xEF53 45 #define EXT3_LINK_MAX 32000 46 #define EXT3_MIN_BLOCK_SIZE 1024 47 #define EXT3_MAX_BLOCK_SIZE 4096 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define EXT3_MIN_BLOCK_LOG_SIZE 10 50 #define EXT3_BLOCK_SIZE(s) (EXT3_MIN_BLOCK_SIZE << (s)->s_log_block_size) 51 #define EXT3_ADDR_PER_BLOCK(s) (EXT3_BLOCK_SIZE(s) / sizeof (__u32)) 52 #define EXT3_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define EXT3_INODE_SIZE(s) (((s)->s_rev_level == EXT3_GOOD_OLD_REV) ? EXT3_GOOD_OLD_INODE_SIZE : (s)->s_inode_size) 55 #define EXT3_FIRST_INO(s) (((s)->s_rev_level == EXT3_GOOD_OLD_REV) ? EXT3_GOOD_OLD_FIRST_INO : (s)->s_first_ino) 56 #define EXT3_MIN_FRAG_SIZE 1024 57 #define EXT3_MAX_FRAG_SIZE 4096 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define EXT3_MIN_FRAG_LOG_SIZE 10 60 #define EXT3_FRAG_SIZE(s) (EXT3_MIN_FRAG_SIZE << (s)->s_log_frag_size) 61 #define EXT3_FRAGS_PER_BLOCK(s) (EXT3_BLOCK_SIZE(s) / EXT3_FRAG_SIZE(s)) 62 struct ext3_group_desc 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 { 65 __le32 bg_block_bitmap; 66 __le32 bg_inode_bitmap; 67 __le32 bg_inode_table; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __le16 bg_free_blocks_count; 70 __le16 bg_free_inodes_count; 71 __le16 bg_used_dirs_count; 72 __u16 bg_pad; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 __le32 bg_reserved[3]; 75 }; 76 #define EXT3_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) 77 #define EXT3_DESC_PER_BLOCK(s) (EXT3_BLOCK_SIZE(s) / sizeof (struct ext3_group_desc)) 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define EXT3_INODES_PER_GROUP(s) ((s)->s_inodes_per_group) 80 #define EXT3_NDIR_BLOCKS 12 81 #define EXT3_IND_BLOCK EXT3_NDIR_BLOCKS 82 #define EXT3_DIND_BLOCK (EXT3_IND_BLOCK + 1) 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define EXT3_TIND_BLOCK (EXT3_DIND_BLOCK + 1) 85 #define EXT3_N_BLOCKS (EXT3_TIND_BLOCK + 1) 86 #define EXT3_SECRM_FL 0x00000001 87 #define EXT3_UNRM_FL 0x00000002 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define EXT3_COMPR_FL 0x00000004 90 #define EXT3_SYNC_FL 0x00000008 91 #define EXT3_IMMUTABLE_FL 0x00000010 92 #define EXT3_APPEND_FL 0x00000020 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define EXT3_NODUMP_FL 0x00000040 95 #define EXT3_NOATIME_FL 0x00000080 96 #define EXT3_DIRTY_FL 0x00000100 97 #define EXT3_COMPRBLK_FL 0x00000200 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define EXT3_NOCOMPR_FL 0x00000400 100 #define EXT3_ECOMPR_FL 0x00000800 101 #define EXT3_INDEX_FL 0x00001000 102 #define EXT3_IMAGIC_FL 0x00002000 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define EXT3_JOURNAL_DATA_FL 0x00004000 105 #define EXT3_NOTAIL_FL 0x00008000 106 #define EXT3_DIRSYNC_FL 0x00010000 107 #define EXT3_TOPDIR_FL 0x00020000 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define EXT3_RESERVED_FL 0x80000000 110 #define EXT3_FL_USER_VISIBLE 0x0003DFFF 111 #define EXT3_FL_USER_MODIFIABLE 0x000380FF 112 #define EXT3_STATE_JDATA 0x00000001 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define EXT3_STATE_NEW 0x00000002 115 #define EXT3_STATE_XATTR 0x00000004 116 struct ext3_new_group_input { 117 __u32 group; 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 __u32 block_bitmap; 120 __u32 inode_bitmap; 121 __u32 inode_table; 122 __u32 blocks_count; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 __u16 reserved_blocks; 125 __u16 unused; 126 }; 127 struct ext3_new_group_data { 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 __u32 group; 130 __u32 block_bitmap; 131 __u32 inode_bitmap; 132 __u32 inode_table; 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 __u32 blocks_count; 135 __u16 reserved_blocks; 136 __u16 unused; 137 __u32 free_blocks_count; 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 }; 140 #define EXT3_IOC_GETFLAGS _IOR('f', 1, long) 141 #define EXT3_IOC_SETFLAGS _IOW('f', 2, long) 142 #define EXT3_IOC_GETVERSION _IOR('f', 3, long) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define EXT3_IOC_SETVERSION _IOW('f', 4, long) 145 #define EXT3_IOC_GROUP_EXTEND _IOW('f', 7, unsigned long) 146 #define EXT3_IOC_GROUP_ADD _IOW('f', 8,struct ext3_new_group_input) 147 #define EXT3_IOC_GETVERSION_OLD _IOR('v', 1, long) 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define EXT3_IOC_SETVERSION_OLD _IOW('v', 2, long) 150 #define EXT3_IOC_GETRSVSZ _IOR('f', 5, long) 151 #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) 152 struct ext3_mount_options { 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 unsigned long s_mount_opt; 155 uid_t s_resuid; 156 gid_t s_resgid; 157 unsigned long s_commit_interval; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 }; 160 struct ext3_inode { 161 __le16 i_mode; 162 __le16 i_uid; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 __le32 i_size; 165 __le32 i_atime; 166 __le32 i_ctime; 167 __le32 i_mtime; 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 __le32 i_dtime; 170 __le16 i_gid; 171 __le16 i_links_count; 172 __le32 i_blocks; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 __le32 i_flags; 175 union { 176 struct { 177 __u32 l_i_reserved1; 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 } linux1; 180 struct { 181 __u32 h_i_translator; 182 } hurd1; 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 struct { 185 __u32 m_i_reserved1; 186 } masix1; 187 } osd1; 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 __le32 i_block[EXT3_N_BLOCKS]; 190 __le32 i_generation; 191 __le32 i_file_acl; 192 __le32 i_dir_acl; 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 __le32 i_faddr; 195 union { 196 struct { 197 __u8 l_i_frag; 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 __u8 l_i_fsize; 200 __u16 i_pad1; 201 __le16 l_i_uid_high; 202 __le16 l_i_gid_high; 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 __u32 l_i_reserved2; 205 } linux2; 206 struct { 207 __u8 h_i_frag; 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 __u8 h_i_fsize; 210 __u16 h_i_mode_high; 211 __u16 h_i_uid_high; 212 __u16 h_i_gid_high; 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 __u32 h_i_author; 215 } hurd2; 216 struct { 217 __u8 m_i_frag; 218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 __u8 m_i_fsize; 220 __u16 m_pad1; 221 __u32 m_i_reserved2[2]; 222 } masix2; 223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 } osd2; 225 __le16 i_extra_isize; 226 __le16 i_pad1; 227 }; 228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 #define i_size_high i_dir_acl 230 #ifdef __linux__ 231 #define i_reserved1 osd1.linux1.l_i_reserved1 232 #define i_frag osd2.linux2.l_i_frag 233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 #define i_fsize osd2.linux2.l_i_fsize 235 #define i_uid_low i_uid 236 #define i_gid_low i_gid 237 #define i_uid_high osd2.linux2.l_i_uid_high 238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 #define i_gid_high osd2.linux2.l_i_gid_high 240 #define i_reserved2 osd2.linux2.l_i_reserved2 241 #elif defined(__GNU__) 242 #define i_translator osd1.hurd1.h_i_translator 243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244 #define i_frag osd2.hurd2.h_i_frag; 245 #define i_fsize osd2.hurd2.h_i_fsize; 246 #define i_uid_high osd2.hurd2.h_i_uid_high 247 #define i_gid_high osd2.hurd2.h_i_gid_high 248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 #define i_author osd2.hurd2.h_i_author 250 #elif defined(__masix__) 251 #define i_reserved1 osd1.masix1.m_i_reserved1 252 #define i_frag osd2.masix2.m_i_frag 253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 #define i_fsize osd2.masix2.m_i_fsize 255 #define i_reserved2 osd2.masix2.m_i_reserved2 256 #endif 257 #define EXT3_VALID_FS 0x0001 258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259 #define EXT3_ERROR_FS 0x0002 260 #define EXT3_ORPHAN_FS 0x0004 261 #define EXT3_MOUNT_CHECK 0x00001 262 #define EXT3_MOUNT_OLDALLOC 0x00002 263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264 #define EXT3_MOUNT_GRPID 0x00004 265 #define EXT3_MOUNT_DEBUG 0x00008 266 #define EXT3_MOUNT_ERRORS_CONT 0x00010 267 #define EXT3_MOUNT_ERRORS_RO 0x00020 268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269 #define EXT3_MOUNT_ERRORS_PANIC 0x00040 270 #define EXT3_MOUNT_MINIX_DF 0x00080 271 #define EXT3_MOUNT_NOLOAD 0x00100 272 #define EXT3_MOUNT_ABORT 0x00200 273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274 #define EXT3_MOUNT_DATA_FLAGS 0x00C00 275 #define EXT3_MOUNT_JOURNAL_DATA 0x00400 276 #define EXT3_MOUNT_ORDERED_DATA 0x00800 277 #define EXT3_MOUNT_WRITEBACK_DATA 0x00C00 278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279 #define EXT3_MOUNT_UPDATE_JOURNAL 0x01000 280 #define EXT3_MOUNT_NO_UID32 0x02000 281 #define EXT3_MOUNT_XATTR_USER 0x04000 282 #define EXT3_MOUNT_POSIX_ACL 0x08000 283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284 #define EXT3_MOUNT_RESERVATION 0x10000 285 #define EXT3_MOUNT_BARRIER 0x20000 286 #define EXT3_MOUNT_NOBH 0x40000 287 #define EXT3_MOUNT_QUOTA 0x80000 288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289 #define EXT3_MOUNT_USRQUOTA 0x100000 290 #define EXT3_MOUNT_GRPQUOTA 0x200000 291 #ifndef _LINUX_EXT2_FS_H 292 #define clear_opt(o, opt) o &= ~EXT3_MOUNT_##opt 293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 #define set_opt(o, opt) o |= EXT3_MOUNT_##opt 295 #define test_opt(sb, opt) (EXT3_SB(sb)->s_mount_opt & EXT3_MOUNT_##opt) 296 #else 297 #define EXT2_MOUNT_NOLOAD EXT3_MOUNT_NOLOAD 298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299 #define EXT2_MOUNT_ABORT EXT3_MOUNT_ABORT 300 #define EXT2_MOUNT_DATA_FLAGS EXT3_MOUNT_DATA_FLAGS 301 #endif 302 #define ext3_set_bit ext2_set_bit 303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304 #define ext3_set_bit_atomic ext2_set_bit_atomic 305 #define ext3_clear_bit ext2_clear_bit 306 #define ext3_clear_bit_atomic ext2_clear_bit_atomic 307 #define ext3_test_bit ext2_test_bit 308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309 #define ext3_find_first_zero_bit ext2_find_first_zero_bit 310 #define ext3_find_next_zero_bit ext2_find_next_zero_bit 311 #define EXT3_DFL_MAX_MNT_COUNT 20 312 #define EXT3_DFL_CHECKINTERVAL 0 313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314 #define EXT3_ERRORS_CONTINUE 1 315 #define EXT3_ERRORS_RO 2 316 #define EXT3_ERRORS_PANIC 3 317 #define EXT3_ERRORS_DEFAULT EXT3_ERRORS_CONTINUE 318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319 struct ext3_super_block { 320 __le32 s_inodes_count; 321 __le32 s_blocks_count; 322 __le32 s_r_blocks_count; 323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324 __le32 s_free_blocks_count; 325 __le32 s_free_inodes_count; 326 __le32 s_first_data_block; 327 __le32 s_log_block_size; 328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329 __le32 s_log_frag_size; 330 __le32 s_blocks_per_group; 331 __le32 s_frags_per_group; 332 __le32 s_inodes_per_group; 333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334 __le32 s_mtime; 335 __le32 s_wtime; 336 __le16 s_mnt_count; 337 __le16 s_max_mnt_count; 338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339 __le16 s_magic; 340 __le16 s_state; 341 __le16 s_errors; 342 __le16 s_minor_rev_level; 343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 __le32 s_lastcheck; 345 __le32 s_checkinterval; 346 __le32 s_creator_os; 347 __le32 s_rev_level; 348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349 __le16 s_def_resuid; 350 __le16 s_def_resgid; 351 __le32 s_first_ino; 352 __le16 s_inode_size; 353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354 __le16 s_block_group_nr; 355 __le32 s_feature_compat; 356 __le32 s_feature_incompat; 357 __le32 s_feature_ro_compat; 358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359 __u8 s_uuid[16]; 360 char s_volume_name[16]; 361 char s_last_mounted[64]; 362 __le32 s_algorithm_usage_bitmap; 363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 __u8 s_prealloc_blocks; 365 __u8 s_prealloc_dir_blocks; 366 __u16 s_reserved_gdt_blocks; 367 __u8 s_journal_uuid[16]; 368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369 __le32 s_journal_inum; 370 __le32 s_journal_dev; 371 __le32 s_last_orphan; 372 __le32 s_hash_seed[4]; 373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 __u8 s_def_hash_version; 375 __u8 s_reserved_char_pad; 376 __u16 s_reserved_word_pad; 377 __le32 s_default_mount_opts; 378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 __le32 s_first_meta_bg; 380 __u32 s_reserved[190]; 381 }; 382 #define EXT3_SB(sb) (sb) 383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384 #define NEXT_ORPHAN(inode) EXT3_I(inode)->i_dtime 385 #define EXT3_OS_LINUX 0 386 #define EXT3_OS_HURD 1 387 #define EXT3_OS_MASIX 2 388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389 #define EXT3_OS_FREEBSD 3 390 #define EXT3_OS_LITES 4 391 #define EXT3_GOOD_OLD_REV 0 392 #define EXT3_DYNAMIC_REV 1 393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394 #define EXT3_CURRENT_REV EXT3_GOOD_OLD_REV 395 #define EXT3_MAX_SUPP_REV EXT3_DYNAMIC_REV 396 #define EXT3_GOOD_OLD_INODE_SIZE 128 397 #define EXT3_HAS_COMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) 398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 #define EXT3_HAS_RO_COMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) 400 #define EXT3_HAS_INCOMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) 401 #define EXT3_SET_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 402 #define EXT3_SET_RO_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) 403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404 #define EXT3_SET_INCOMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask) 405 #define EXT3_CLEAR_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask) 406 #define EXT3_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_le32(mask) 407 #define EXT3_CLEAR_INCOMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le32(mask) 408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409 #define EXT3_FEATURE_COMPAT_DIR_PREALLOC 0x0001 410 #define EXT3_FEATURE_COMPAT_IMAGIC_INODES 0x0002 411 #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 412 #define EXT3_FEATURE_COMPAT_EXT_ATTR 0x0008 413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414 #define EXT3_FEATURE_COMPAT_RESIZE_INODE 0x0010 415 #define EXT3_FEATURE_COMPAT_DIR_INDEX 0x0020 416 #define EXT3_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 417 #define EXT3_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419 #define EXT3_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 420 #define EXT3_FEATURE_INCOMPAT_COMPRESSION 0x0001 421 #define EXT3_FEATURE_INCOMPAT_FILETYPE 0x0002 422 #define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424 #define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x0008 425 #define EXT3_FEATURE_INCOMPAT_META_BG 0x0010 426 #define EXT3_FEATURE_COMPAT_SUPP EXT2_FEATURE_COMPAT_EXT_ATTR 427 #define EXT3_FEATURE_INCOMPAT_SUPP (EXT3_FEATURE_INCOMPAT_FILETYPE| EXT3_FEATURE_INCOMPAT_RECOVER| EXT3_FEATURE_INCOMPAT_META_BG) 428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429 #define EXT3_FEATURE_RO_COMPAT_SUPP (EXT3_FEATURE_RO_COMPAT_SPARSE_SUPER| EXT3_FEATURE_RO_COMPAT_LARGE_FILE| EXT3_FEATURE_RO_COMPAT_BTREE_DIR) 430 #define EXT3_DEF_RESUID 0 431 #define EXT3_DEF_RESGID 0 432 #define EXT3_DEFM_DEBUG 0x0001 433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 434 #define EXT3_DEFM_BSDGROUPS 0x0002 435 #define EXT3_DEFM_XATTR_USER 0x0004 436 #define EXT3_DEFM_ACL 0x0008 437 #define EXT3_DEFM_UID16 0x0010 438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 439 #define EXT3_DEFM_JMODE 0x0060 440 #define EXT3_DEFM_JMODE_DATA 0x0020 441 #define EXT3_DEFM_JMODE_ORDERED 0x0040 442 #define EXT3_DEFM_JMODE_WBACK 0x0060 443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444 #define EXT3_NAME_LEN 255 445 struct ext3_dir_entry { 446 __le32 inode; 447 __le16 rec_len; 448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 449 __le16 name_len; 450 char name[EXT3_NAME_LEN]; 451 }; 452 struct ext3_dir_entry_2 { 453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 454 __le32 inode; 455 __le16 rec_len; 456 __u8 name_len; 457 __u8 file_type; 458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 459 char name[EXT3_NAME_LEN]; 460 }; 461 #define EXT3_FT_UNKNOWN 0 462 #define EXT3_FT_REG_FILE 1 463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 464 #define EXT3_FT_DIR 2 465 #define EXT3_FT_CHRDEV 3 466 #define EXT3_FT_BLKDEV 4 467 #define EXT3_FT_FIFO 5 468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 469 #define EXT3_FT_SOCK 6 470 #define EXT3_FT_SYMLINK 7 471 #define EXT3_FT_MAX 8 472 #define EXT3_DIR_PAD 4 473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 474 #define EXT3_DIR_ROUND (EXT3_DIR_PAD - 1) 475 #define EXT3_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT3_DIR_ROUND) & ~EXT3_DIR_ROUND) 476 #define is_dx(dir) 0 477 #define EXT3_DIR_LINK_MAX(dir) ((dir)->i_nlink >= EXT3_LINK_MAX) 478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 479 #define EXT3_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2) 480 #define DX_HASH_LEGACY 0 481 #define DX_HASH_HALF_MD4 1 482 #define DX_HASH_TEA 2 483 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 484 #endif 485