Ignore:
Timestamp:
2011-10-05T09:35:12Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3712434
Parents:
cfa1a8a
Message:

Complete mounting skeleton (ported from ext2fs) - some filesystem checks during mount process still missing

File:
1 edited

Legend:

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

    rcfa1a8a r3711e7e  
    3434#define LIBEXT4_LIBEXT4_BLOCK_GROUP_H_
    3535
     36#include <libblock.h>
    3637#include <sys/types.h>
    37 
     38#include "libext4_block_group.h"
    3839/*
    3940 * Structure of a blocks group descriptor
     
    4243        uint32_t block_bitmap_lo; // Blocks bitmap block
    4344        uint32_t inode_bitmap_lo; // Inodes bitmap block
    44         uint32_t inode_table_lo; // Inodes table block
     45        uint32_t inode_table_first_lo; // Inodes table block
    4546        uint16_t free_blocks_count_lo; // Free blocks count
    4647        uint16_t free_inodes_count_lo; // Free inodes count
     
    5253        uint32_t block_bitmap_hi; // Blocks bitmap block MSB
    5354        uint32_t inode_bitmap_hi; // Inodes bitmap block MSB
    54         uint32_t inode_table_hi; // Inodes table block MSB
     55        uint32_t inode_table_first_hi; // Inodes table block MSB
    5556        uint16_t free_blocks_count_hi; // Free blocks count MSB
    5657        uint16_t free_inodes_count_hi; // Free inodes count MSB
     
    5859        uint16_t itable_unused_hi;  // Unused inodes count MSB
    5960        uint32_t reserved2[3]; // Padding
    60 } ext4_group_desc_t;
     61} ext4_block_group_t;
     62
     63typedef struct ext4_block_group_ref {
     64        block_t *block; // Reference to a block containing this block group descr
     65        ext4_block_group_t *block_group;
     66} ext4_block_group_ref_t;
     67
     68// TODO check value
     69#define EXT4_BLOCK_GROUP_DESCRIPTOR_SIZE 32
     70
     71extern uint64_t ext4_block_group_get_inode_table_first_block(ext4_block_group_t *);
    6172
    6273#endif
Note: See TracChangeset for help on using the changeset viewer.