Changeset eef306c in mainline for uspace/srv/fs/ext2fs/ext2fs_ops.c


Ignore:
Timestamp:
2011-03-09T16:16:27Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
868ef40
Parents:
e2abab03
Message:

Check filesystem feature flags when mounting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext2fs/ext2fs_ops.c

    re2abab03 reef306c  
    484484        ext2_filesystem_t *fs;
    485485        ext2fs_instance_t *inst;
     486        bool read_only;
    486487       
    487488        /* Accept the mount options */
     
    522523        /* Do some sanity checking */
    523524        rc = ext2_filesystem_check_sanity(fs);
     525        if (rc != EOK) {
     526                ext2_filesystem_fini(fs);
     527                free(fs);
     528                free(inst);
     529                async_answer_0(rid, rc);
     530                return;
     531        }
     532       
     533        /* Check flags */
     534        rc = ext2_filesystem_check_flags(fs, &read_only);
    524535        if (rc != EOK) {
    525536                ext2_filesystem_fini(fs);
Note: See TracChangeset for help on using the changeset viewer.