Changeset 8958a26 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c
- Timestamp:
- 2011-10-11T19:06:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a7756a
- Parents:
- acd869e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/ext4fs/ext4fs_ops.c
racd869e r8958a26 718 718 719 719 ext4_filesystem_put_inode_ref(inode_ref); 720 720 721 return rc; 721 722 } 722 723 723 bool ext4fs_is_dots(const uint8_t *name, size_t name_size) { 724 bool ext4fs_is_dots(const uint8_t *name, size_t name_size) 725 { 724 726 if (name_size == 1 && name[0] == '.') { 725 727 return true; … … 745 747 746 748 // 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)) { 749 750 EXT4FS_DBG("Directory using HTree"); 750 751 } … … 802 803 if (found) { 803 804 rc = ext4_directory_iterator_next(&it); 804 if (rc != EOK) 805 if (rc != EOK) { 805 806 return rc; 807 } 806 808 next = it.current_offset; 807 809 } 808 810 809 811 rc = ext4_directory_iterator_fini(&it); 810 if (rc != EOK) 811 return rc; 812 if (rc != EOK) { 813 return rc; 814 } 812 815 813 816 if (found) { … … 832 835 block_t *block; 833 836 uint8_t *buffer; 834 835 // TODO Check extent836 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 }840 837 841 838 file_size = ext4_inode_get_size(inst->filesystem->superblock, … … 901 898 902 899 rc = block_put(block); 903 if (rc != EOK) 904 return rc; 900 if (rc != EOK) { 901 return rc; 902 } 905 903 906 904 *rbytes = bytes;
Note:
See TracChangeset
for help on using the changeset viewer.