Changeset 8958a26 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2011-10-11T19:06:10Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a7756a
Parents:
acd869e
Message:

Extent reading (only with zero depth)

File:
1 edited

Legend:

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

    racd869e r8958a26  
    718718
    719719        ext4_filesystem_put_inode_ref(inode_ref);
     720
    720721        return rc;
    721722}
    722723
    723 bool ext4fs_is_dots(const uint8_t *name, size_t name_size) {
     724bool ext4fs_is_dots(const uint8_t *name, size_t name_size)
     725{
    724726        if (name_size == 1 && name[0] == '.') {
    725727                return true;
     
    745747
    746748        // TODO check if directory uses 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        if (ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_INDEX)) {
    749750                EXT4FS_DBG("Directory using HTree");
    750751        }
     
    802803        if (found) {
    803804                rc = ext4_directory_iterator_next(&it);
    804                 if (rc != EOK)
     805                if (rc != EOK) {
    805806                        return rc;
     807                }
    806808                next = it.current_offset;
    807809        }
    808810
    809811        rc = ext4_directory_iterator_fini(&it);
    810         if (rc != EOK)
    811                 return rc;
     812        if (rc != EOK) {
     813                return rc;
     814        }
    812815
    813816        if (found) {
     
    832835        block_t *block;
    833836        uint8_t *buffer;
    834 
    835         // TODO Check extent
    836         if (ext4_filesystem_has_feature_incompatible(inst->filesystem, EXT4_FEATURE_INCOMPAT_EXTENTS)
    837                         && ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_EXTENTS)) {
    838                 EXT4FS_DBG("Extent found");
    839         }
    840837
    841838        file_size = ext4_inode_get_size(inst->filesystem->superblock,
     
    901898
    902899        rc = block_put(block);
    903         if (rc != EOK)
    904                 return rc;
     900        if (rc != EOK) {
     901                return rc;
     902        }
    905903
    906904        *rbytes = bytes;
Note: See TracChangeset for help on using the changeset viewer.