summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Redestig <johan.redestig@sonymobile.com>2015-10-29 18:04:47 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2015-10-29 21:54:37 +0100
commitcb7274dc9876015f49bf339dd5a6978d12b703ad (patch)
tree5bcb979a864eb0271eb9040506429a759a266bee
parenta43f3854c60508e00b05201e91dee7571afd3a95 (diff)
downloadextras-cb7274dc9876015f49bf339dd5a6978d12b703ad.tar.gz
ext4_utils: Parse unclean super block
Dont fail to parse the superblock just because the file system was not unmounted cleanly. Change-Id: I381c3e6c55ef5eb478b53d06d6cc56df1b6f41f4
-rw-r--r--ext4_utils/ext4_sb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext4_utils/ext4_sb.c b/ext4_utils/ext4_sb.c
index 1d527a10..7bbbcfe3 100644
--- a/ext4_utils/ext4_sb.c
+++ b/ext4_utils/ext4_sb.c
@@ -25,9 +25,6 @@ int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info)
if (sb->s_magic != EXT4_SUPER_MAGIC)
return -EINVAL;
- if ((sb->s_state & EXT4_VALID_FS) != EXT4_VALID_FS)
- return -EINVAL;
-
info->block_size = 1024 << sb->s_log_block_size;
info->blocks_per_group = sb->s_blocks_per_group;
info->inodes_per_group = sb->s_inodes_per_group;