Ignore:
Timestamp:
2011-10-04T12:18:44Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a23297c
Parents:
01ab41b
Message:

part of code needed for successful mount (porting from ext2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_block_group.h

    r01ab41b r9c0c0e1  
    4040 */
    4141typedef struct ext4_block_group {
    42         uint32_t bg_block_bitmap_lo; // Blocks bitmap block
    43         uint32_t bg_inode_bitmap_lo; // Inodes bitmap block
    44         uint32_t bg_inode_table_lo; // Inodes table block
    45         uint16_t bg_free_blocks_count_lo; // Free blocks count
    46         uint16_t bg_free_inodes_count_lo; // Free inodes count
    47         uint16_t bg_used_dirs_count_lo; // Directories count
    48         uint16_t bg_flags; // EXT4_BG_flags (INODE_UNINIT, etc)
    49         uint32_t bg_reserved[2]; // Likely block/inode bitmap checksum
    50         uint16_t bg_itable_unused_lo; // Unused inodes count
    51         uint16_t bg_checksum; // crc16(sb_uuid+group+desc)
    52         uint32_t bg_block_bitmap_hi; // Blocks bitmap block MSB
    53         uint32_t bg_inode_bitmap_hi; // Inodes bitmap block MSB
    54         uint32_t bg_inode_table_hi; // Inodes table block MSB
    55         uint16_t bg_free_blocks_count_hi; // Free blocks count MSB
    56         uint16_t bg_free_inodes_count_hi; // Free inodes count MSB
    57         uint16_t bg_used_dirs_count_hi; // Directories count MSB
    58         uint16_t bg_itable_unused_hi;  // Unused inodes count MSB
    59         uint32_t bg_reserved2[3]; // Padding
     42        uint32_t block_bitmap_lo; // Blocks bitmap block
     43        uint32_t inode_bitmap_lo; // Inodes bitmap block
     44        uint32_t inode_table_lo; // Inodes table block
     45        uint16_t free_blocks_count_lo; // Free blocks count
     46        uint16_t free_inodes_count_lo; // Free inodes count
     47        uint16_t used_dirs_count_lo; // Directories count
     48        uint16_t flags; // EXT4_BG_flags (INODE_UNINIT, etc)
     49        uint32_t reserved[2]; // Likely block/inode bitmap checksum
     50        uint16_t itable_unused_lo; // Unused inodes count
     51        uint16_t checksum; // crc16(sb_uuid+group+desc)
     52        uint32_t block_bitmap_hi; // Blocks bitmap block MSB
     53        uint32_t inode_bitmap_hi; // Inodes bitmap block MSB
     54        uint32_t inode_table_hi; // Inodes table block MSB
     55        uint16_t free_blocks_count_hi; // Free blocks count MSB
     56        uint16_t free_inodes_count_hi; // Free inodes count MSB
     57        uint16_t used_dirs_count_hi; // Directories count MSB
     58        uint16_t itable_unused_hi;  // Unused inodes count MSB
     59        uint32_t reserved2[3]; // Padding
    6060} ext4_group_desc_t;
    6161
Note: See TracChangeset for help on using the changeset viewer.