Changeset 7bc4508 in mainline for uspace/lib/ext4/libext4_superblock.h


Ignore:
Timestamp:
2011-10-18T19:58:36Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bd2c19
Parents:
12f55220
Message:

First part of reading htree directory index - the most important functionality (computing hashes) still missing

File:
1 edited

Legend:

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

    r12f55220 r7bc4508  
    109109        uint16_t min_extra_isize; // All inodes have at least # bytes
    110110        uint16_t want_extra_isize; // New inodes should reserve # bytes
    111         uint32_t lags; // Miscellaneous flags
     111        uint32_t flags; // Miscellaneous flags
    112112        uint16_t raid_stride; // RAID stride
    113113        uint16_t mmp_interval; // # seconds to wait in MMP checking
     
    144144#define EXT4_SUPERBLOCK_OS_HURD         1
    145145
     146/*
     147 * Misc. filesystem flags
     148 */
     149#define EXT4_SUPERBLOCK_FLAGS_SIGNED_HASH       0x0001  /* Signed dirhash in use */
     150#define EXT4_SUPERBLOCK_FLAGS_UNSIGNED_HASH     0x0002  /* Unsigned dirhash in use */
     151#define EXT4_SUPERBLOCK_FLAGS_TEST_FILESYS      0x0004  /* to test development code */
     152
     153
    146154extern uint32_t ext4_superblock_get_inodes_count(ext4_superblock_t *);
    147155extern uint64_t ext4_superblock_get_blocks_count(ext4_superblock_t *);
     
    191199uint32_t s_journal_dev; // Device number of journal file
    192200uint32_t s_last_orphan; // Head of list of inodes to delete
    193 uint32_t s_hash_seed[4]; // HTREE hash seed
     201*/
     202extern uint32_t* ext4_superblock_get_hash_seed(ext4_superblock_t *);
     203
     204/*
    194205uint8_t s_def_hash_version; // Default hash version to use
    195206uint8_t s_jnl_backup_type;
     
    201212uint16_t s_min_extra_isize; // All inodes have at least # bytes
    202213uint16_t s_want_extra_isize; // New inodes should reserve # bytes
    203 uint32_t s_flags; // Miscellaneous flags
     214*/
     215extern uint32_t ext4_superblock_get_flags(ext4_superblock_t *);
     216/*
    204217uint16_t s_raid_stride; // RAID stride
    205218uint16_t s_mmp_interval; // # seconds to wait in MMP checking
     
    229242
    230243/* More complex superblock functions */
     244extern bool ext4_superblock_has_flag(ext4_superblock_t *, uint32_t);
    231245extern int ext4_superblock_read_direct(service_id_t, ext4_superblock_t **);
    232246extern int ext4_superblock_check_sanity(ext4_superblock_t *);
Note: See TracChangeset for help on using the changeset viewer.