Changeset 1d6f507 in mainline for uspace/app/ext2info/ext2info.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/app/ext2info/ext2info.c

    r3949e8a0 r1d6f507  
    8888        if (rc != EOK)  {
    8989                printf(NAME ": Error initializing libext2.\n");
     90                return 3;
     91        }
     92       
     93        rc = ext2_filesystem_check_sanity(&filesystem);
     94        if (rc != EOK) {
     95                printf(NAME ": Filesystem did not pass sanity check.\n");
    9096                return 3;
    9197        }
Note: See TracChangeset for help on using the changeset viewer.