Changeset 566c401 in mainline for uspace/lib/ext2/libext2_filesystem.c


Ignore:
Timestamp:
2011-02-13T20:37:31Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8bd5dad
Parents:
e272949
Message:

Cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext2/libext2_filesystem.c

    re272949 r566c401  
    4343 * This function reads superblock from the device and
    4444 * 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
    4548 */
    46 int ext2_filesystem_init(ext2_filesystem_t *fs, devmap_handle_t dev) {
     49int ext2_filesystem_init(ext2_filesystem_t *fs, devmap_handle_t devmap_handle)
     50{
    4751        int rc;
    4852        ext2_superblock_t *temp_superblock;
    4953       
    50         fs->device = dev;
     54        fs->device = devmap_handle;
    5155       
    5256        rc = block_init(fs->device, 2048);
     
    5559        }
    5660       
    57         rc = ext2_superblock_read_direct(dev, &temp_superblock);
     61        rc = ext2_superblock_read_direct(fs->device, &temp_superblock);
    5862        if (rc != EOK) {
    59                 block_fini(dev);
     63                block_fini(fs->device);
    6064                return rc;
    6165        }
     
    6872/**
    6973 * Finalize an instance of filesystem
     74 *
     75 * @param fs Pointer to ext2_filesystem_t to finalize
    7076 */
    71 void ext2_filesystem_fini(ext2_filesystem_t *fs) {
     77void ext2_filesystem_fini(ext2_filesystem_t *fs)
     78{
    7279        block_fini(fs->device);
    7380}
Note: See TracChangeset for help on using the changeset viewer.