Changeset 829d238 in mainline for uspace/lib
- Timestamp:
- 2011-10-10T18:55:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d52126b
- Parents:
- 7b9381b
- Location:
- uspace/lib/ext4
- Files:
-
- 2 added
- 4 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 **);
Note:
See TracChangeset
for help on using the changeset viewer.