Changeset 829d238 in mainline
- Timestamp:
- 2011-10-10T18:55:04Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d52126b
- Parents:
- 7b9381b
- Location:
- uspace
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/Makefile
r7b9381b r829d238 35 35 libext4_block_group.c \ 36 36 libext4_directory.c \ 37 libext4_extent.c \ 37 38 libext4_filesystem.c \ 38 39 libext4_inode.c \ -
uspace/lib/ext4/libext4.h
r7b9381b r829d238 36 36 #include "libext4_block_group.h" 37 37 #include "libext4_directory.h" 38 #include "libext4_extent.h" 38 39 #include "libext4_filesystem.h" 39 40 #include "libext4_inode.h" -
uspace/lib/ext4/libext4_filesystem.c
r7b9381b r829d238 196 196 } 197 197 198 int ext4_filesystem_put_block_group_ref(ext4_block_group_ref_t *ref) 199 { 200 int rc; 201 202 rc = block_put(ref->block); 203 free(ref); 204 205 return rc; 206 } 207 198 208 int ext4_filesystem_get_inode_ref(ext4_filesystem_t *fs, uint32_t index, 199 209 ext4_inode_ref_t **ref) … … 235 245 bg_ref->block_group); 236 246 247 rc = ext4_filesystem_put_block_group_ref(bg_ref); 248 if (rc != EOK) { 249 free(newref); 250 return rc; 251 } 252 237 253 inode_size = ext4_superblock_get_inode_size(fs->superblock); 238 254 block_size = ext4_superblock_get_block_size(fs->superblock); -
uspace/lib/ext4/libext4_filesystem.h
r7b9381b r829d238 109 109 extern int ext4_filesystem_get_block_group_ref(ext4_filesystem_t *, uint32_t, 110 110 ext4_block_group_ref_t **); 111 extern int ext4_filesystem_put_block_group_ref(ext4_block_group_ref_t *); 111 112 extern int ext4_filesystem_get_inode_ref(ext4_filesystem_t *, uint32_t, 112 113 ext4_inode_ref_t **); -
uspace/srv/fs/ext4fs/ext4fs_ops.c
r7b9381b r829d238 833 833 uint8_t *buffer; 834 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 } 840 835 841 file_size = ext4_inode_get_size(inst->filesystem->superblock, 836 842 inode_ref->inode);
Note:
See TracChangeset
for help on using the changeset viewer.