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


Ignore:
Timestamp:
2012-04-14T16:29:09Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1df3f57a
Parents:
831507b
Message:

debugged block appending to extent + directory index initialization

File:
1 edited

Legend:

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

    r831507b rb6d7b7c  
    616616
    617617                // Initialize directory index if necessary
    618 //              if (ext4_superblock_has_feature_compatible(
    619 //                              fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX)) {
    620 //
    621 //                      rc = ext4_directory_dx_init(child->inode_ref);
    622 //                      if (rc != EOK) {
    623 //                              return rc;
    624 //                      }
    625 //
    626 //                      ext4_inode_set_flag(child->inode_ref->inode, EXT4_INODE_FLAG_INDEX);
    627 //                      child->inode_ref->dirty = true;
    628 //              }
     618                if (ext4_superblock_has_feature_compatible(
     619                                fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX)) {
     620
     621                        rc = ext4_directory_dx_init(child->inode_ref);
     622                        if (rc != EOK) {
     623                                return rc;
     624                        }
     625
     626                        ext4_inode_set_flag(child->inode_ref->inode, EXT4_INODE_FLAG_INDEX);
     627                        child->inode_ref->dirty = true;
     628                }
    629629
    630630                uint16_t parent_links = ext4_inode_get_links_count(parent->inode_ref->inode);
Note: See TracChangeset for help on using the changeset viewer.