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


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.c

    r12f55220 r7bc4508  
    185185
    186186
     187uint32_t* ext4_superblock_get_hash_seed(ext4_superblock_t *sb)
     188{
     189        return sb->hash_seed;
     190}
     191
     192uint32_t ext4_superblock_get_flags(ext4_superblock_t *sb)
     193{
     194        return uint32_t_le2host(sb->flags);
     195}
     196
     197
    187198/*
    188199 * More complex superblock functions
    189200 */
    190201
     202bool ext4_superblock_has_flag(ext4_superblock_t *sb, uint32_t flag)
     203{
     204        if (ext4_superblock_get_flags(sb) & flag) {
     205                return true;
     206        }
     207        return false;
     208}
     209
    191210int ext4_superblock_read_direct(service_id_t service_id,
    192211    ext4_superblock_t **superblock)
Note: See TracChangeset for help on using the changeset viewer.