Changeset 1d6f507 in mainline for uspace/lib/ext2/libext2_filesystem.c


Ignore:
Timestamp:
2011-02-14T22:20:09Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d241aae
Parents:
3949e8a0
Message:

Add some basic sanity checks

File:
1 edited

Legend:

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

    r3949e8a0 r1d6f507  
    4646 * @param fs                    Pointer to ext2_filesystem_t to initialize
    4747 * @param devmap_handle Device handle of the block device
     48 *
     49 * @return              EOK on success or negative error code on failure
    4850 */
    4951int ext2_filesystem_init(ext2_filesystem_t *fs, devmap_handle_t devmap_handle)
     
    8587
    8688/**
     89 * Check filesystem for sanity
     90 *
     91 * @param fs                    Pointer to ext2_filesystem_t to check
     92 * @return              EOK on success or negative error code on failure
     93 */
     94int ext2_filesystem_check_sanity(ext2_filesystem_t *fs)
     95{
     96        int rc;
     97       
     98        rc = ext2_superblock_check_sanity(fs->superblock);
     99        if (rc != EOK) {
     100                return rc;
     101        }
     102       
     103        return EOK;
     104}
     105
     106/**
    87107 * Finalize an instance of filesystem
    88108 *
Note: See TracChangeset for help on using the changeset viewer.