Changeset 7b9381b in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2011-10-10T12:09:03Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
829d238
Parents:
2ea6392
Message:

Inode flags added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    r2ea6392 r7b9381b  
    454454        }
    455455
    456         // TODO check if directory uses HTree
    457         if (ext4_filesystem_has_feature_compatible(fs, EXT4_FEATURE_COMPAT_DIR_INDEX)) {
    458                 EXT4FS_DBG("Using HTree");
    459         }
    460 
    461456        rc = ext4_directory_iterator_init(&it, fs, enode->inode_ref, 0);
    462457        if (rc != EOK) {
     
    750745
    751746        // TODO check if directory uses HTree
    752         if (ext4_filesystem_has_feature_compatible(inst->filesystem, EXT4_FEATURE_COMPAT_DIR_INDEX)) {
    753                 EXT4FS_DBG("Using HTree");
     747        if (ext4_filesystem_has_feature_compatible(inst->filesystem, EXT4_FEATURE_COMPAT_DIR_INDEX)
     748                        && ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_INDEX)) {
     749                EXT4FS_DBG("Directory using HTree");
    754750        }
    755751
     
    827823    ext4fs_instance_t *inst, ext4_inode_ref_t *inode_ref, size_t *rbytes)
    828824{
    829         EXT4FS_DBG("");
    830 
    831825        int rc;
    832826        uint32_t block_size;
Note: See TracChangeset for help on using the changeset viewer.