Changeset 566c401 in mainline for uspace/lib/ext2/libext2_filesystem.c
- Timestamp:
- 2011-02-13T20:37:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8bd5dad
- Parents:
- e272949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext2/libext2_filesystem.c
re272949 r566c401 43 43 * This function reads superblock from the device and 44 44 * initializes libblock cache with appropriate logical block size. 45 * 46 * @param fs Pointer to ext2_filesystem_t to initialize 47 * @param devmap_handle Device handle of the block device 45 48 */ 46 int ext2_filesystem_init(ext2_filesystem_t *fs, devmap_handle_t dev) { 49 int ext2_filesystem_init(ext2_filesystem_t *fs, devmap_handle_t devmap_handle) 50 { 47 51 int rc; 48 52 ext2_superblock_t *temp_superblock; 49 53 50 fs->device = dev ;54 fs->device = devmap_handle; 51 55 52 56 rc = block_init(fs->device, 2048); … … 55 59 } 56 60 57 rc = ext2_superblock_read_direct( dev, &temp_superblock);61 rc = ext2_superblock_read_direct(fs->device, &temp_superblock); 58 62 if (rc != EOK) { 59 block_fini( dev);63 block_fini(fs->device); 60 64 return rc; 61 65 } … … 68 72 /** 69 73 * Finalize an instance of filesystem 74 * 75 * @param fs Pointer to ext2_filesystem_t to finalize 70 76 */ 71 void ext2_filesystem_fini(ext2_filesystem_t *fs) { 77 void ext2_filesystem_fini(ext2_filesystem_t *fs) 78 { 72 79 block_fini(fs->device); 73 80 }
Note:
See TracChangeset
for help on using the changeset viewer.