Changeset 2ea6392 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2011-10-10T09:22:25Z (14 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b9381b
Parents:
7a68fe5
Message:

cleaning debug some debug messages and added feature checkers

File:
1 edited

Legend:

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

    r7a68fe5 r2ea6392  
    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
    456461        rc = ext4_directory_iterator_init(&it, fs, enode->inode_ref, 0);
    457462        if (rc != EOK) {
     
    464469                        name_size = ext4_directory_entry_ll_get_name_length(fs->superblock,
    465470                                it.current);
    466                         if (!ext4fs_is_dots(&it.current->name, name_size)) {
     471                        if (!ext4fs_is_dots(it.current->name, name_size)) {
    467472                                found = true;
    468473                                break;
     
    744749        bool found = false;
    745750
    746         EXT4FS_DBG("inode = \%d", inode_ref->index);
     751        // 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");
     754        }
    747755
    748756        rc = ext4_directory_iterator_init(&it, inst->filesystem, inode_ref, pos);
     
    765773                    inst->filesystem->superblock, it.current);
    766774
    767 
    768                 char* name = (char *)(&it.current->name);
    769 
    770                 EXT4FS_DBG("name: \%s", name);
    771                 EXT4FS_DBG("inode-number: \%d", it.current->inode);
    772 
    773775                /* skip . and .. */
    774                 if (ext4fs_is_dots(&it.current->name, name_size)) {
     776                if (ext4fs_is_dots(it.current->name, name_size)) {
    775777                        goto skip;
    776778                }
Note: See TracChangeset for help on using the changeset viewer.