Ticket #5704: ext2_ext4sb.patch
File ext2_ext4sb.patch, 1.2 KB (added by , 15 years ago) |
---|
-
src/add-ons/kernel/file_systems/ext2/ext2.h
65 65 uint16 _reserved2; 66 66 uint32 default_mount_options; 67 67 uint32 first_meta_block_group; 68 uint32 _reserved3[190]; 68 uint32 fs_creation_time; 69 uint32 journal_inode[17]; 69 70 71 // ext4 support 72 uint32 num_blocks_hi; 73 uint32 reserved_blocks_hi; 74 uint32 free_blocks_hi; 75 uint16 min_inode_size; 76 uint16 want_inode_size; 77 uint32 flags; 78 uint16 raid_stride; 79 uint16 mmp_interval; 80 uint64 mmp_block; 81 uint32 raid_stripe_width; 82 uint8 groups_per_flex_shift; 83 uint8 _reserved3; 84 uint16 _reserved4; 85 uint32 _reserved5[162]; 86 70 87 uint16 Magic() const { return B_LENDIAN_TO_HOST_INT16(magic); } 71 88 uint32 BlockShift() const { return B_LENDIAN_TO_HOST_INT32(block_shift) + 10; } 72 89 uint32 NumInodes() const { return B_LENDIAN_TO_HOST_INT32(num_inodes); } … … 180 197 uint16 uid_high; 181 198 uint16 gid_high; 182 199 uint32 _reserved2; 200 uint16 extra_inode_size; 201 uint16 _padding2; 183 202 184 203 uint16 Mode() const { return B_LENDIAN_TO_HOST_INT16(mode); } 185 204 uint32 Flags() const { return B_LENDIAN_TO_HOST_INT32(flags); }