Changeset 1ac1ab4 in mainline for uspace/lib/ext4/libext4_types.h


Ignore:
Timestamp:
2012-03-31T20:00:15Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2fa350
Parents:
38384ae
Message:

simplied headers of more functions, improved bg_ref and inode_ref structures, added block group checksumming and fixed bug in block_group values updating

File:
1 edited

Legend:

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

    r38384ae r1ac1ab4  
    194194
    195195/*****************************************************************************/
     196
     197typedef struct ext4_filesystem {
     198        service_id_t device;
     199        ext4_superblock_t *     superblock;
     200        aoff64_t inode_block_limits[4];
     201        aoff64_t inode_blocks_per_level[4];
     202} ext4_filesystem_t;
     203
     204
     205/*****************************************************************************/
     206
     207
    196208/*
    197209 * Structure of a blocks group descriptor
     
    222234        block_t *block; // Reference to a block containing this block group descr
    223235        ext4_block_group_t *block_group;
     236        ext4_filesystem_t *fs;
     237        uint32_t index;
    224238        bool dirty;
    225239} ext4_block_group_ref_t;
     
    229243#define EXT4_BLOCK_MAX_GROUP_DESCRIPTOR_SIZE 64
    230244
    231 
    232 /*****************************************************************************/
    233 
    234 typedef struct ext4_filesystem {
    235         service_id_t device;
    236         ext4_superblock_t *     superblock;
    237         aoff64_t inode_block_limits[4];
    238         aoff64_t inode_blocks_per_level[4];
    239 } ext4_filesystem_t;
     245/*****************************************************************************/
     246
    240247
    241248#define EXT4_MIN_BLOCK_SIZE             1024  //1 KiB
    242249#define EXT4_MAX_BLOCK_SIZE     65536 //64 KiB
    243250#define EXT4_REV0_INODE_SIZE    128
    244 
    245 /*****************************************************************************/
    246 
    247251
    248252#define EXT4_INODE_BLOCK_SIZE                           512
     
    346350        block_t *block; // Reference to a block containing this inode
    347351        ext4_inode_t *inode;
     352        ext4_filesystem_t *fs;
    348353        uint32_t index; // Index number of this inode
    349354        bool dirty;
Note: See TracChangeset for help on using the changeset viewer.