Changeset c3fe001 in mainline


Ignore:
Timestamp:
2012-08-12T22:13:57Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d06c4ae
Parents:
6266cc6
Message:

superblock→state is a bit field, not a value field
make sure we check for the "valid" flag and "error" flag, but ignore the other flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_filesystem.c

    r6266cc6 rc3fe001  
    9696        uint16_t state = ext4_superblock_get_state(fs->superblock);
    9797       
    98         if (state != EXT4_SUPERBLOCK_STATE_VALID_FS) {
     98        if (((state & EXT4_SUPERBLOCK_STATE_VALID_FS) !=
     99            EXT4_SUPERBLOCK_STATE_VALID_FS) ||
     100            ((state & EXT4_SUPERBLOCK_STATE_ERROR_FS) ==
     101            EXT4_SUPERBLOCK_STATE_ERROR_FS)) {
    99102                block_cache_fini(fs->device);
    100103                block_fini(fs->device);
Note: See TracChangeset for help on using the changeset viewer.