Ticket #5704: ext2_ext4sb.patch

File ext2_ext4sb.patch, 1.2 KB (added by jvff, 14 years ago)

Patch for updated superblock

  • src/add-ons/kernel/file_systems/ext2/ext2.h

     
    6565    uint16  _reserved2;
    6666    uint32  default_mount_options;
    6767    uint32  first_meta_block_group;
    68     uint32  _reserved3[190];
     68    uint32  fs_creation_time;
     69    uint32  journal_inode[17];
    6970
     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
    7087    uint16 Magic() const { return B_LENDIAN_TO_HOST_INT16(magic); }
    7188    uint32 BlockShift() const { return B_LENDIAN_TO_HOST_INT32(block_shift) + 10; }
    7289    uint32 NumInodes() const { return B_LENDIAN_TO_HOST_INT32(num_inodes); }
     
    180197    uint16  uid_high;
    181198    uint16  gid_high;
    182199    uint32  _reserved2;
     200    uint16  extra_inode_size;
     201    uint16  _padding2;
    183202
    184203    uint16 Mode() const { return B_LENDIAN_TO_HOST_INT16(mode); }
    185204    uint32 Flags() const { return B_LENDIAN_TO_HOST_INT32(flags); }