diff options
author | Ken Sumrall <ksumrall@android.com> | 2011-06-22 16:50:24 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2011-06-22 18:24:24 -0700 |
commit | 97fc910ce0e05862888fd1d9e1938feba40f7539 (patch) | |
tree | 49bc594b662f2b44e6f2dc14db8d5bedc68e4c58 /ext4_utils/ext4_utils.c | |
parent | 671cd2188e2f224aaeac4955785199f228235719 (diff) | |
download | extras-97fc910ce0e05862888fd1d9e1938feba40f7539.tar.gz |
Fixes for ext4fixup.
Add check for filesystem that needs the journal run
Fix check for a cleanly unmounted filesystem.
Fix computation of new inode number
Fix check in two places for high bit being set on inode num
Only run sanity check pass if filesystem fixup state is unset
(i.e. not partway through the conversion)
Change-Id: Ib5521e7f3c04d32c02d9890644a99378e3a3659e
Diffstat (limited to 'ext4_utils/ext4_utils.c')
-rw-r--r-- | ext4_utils/ext4_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/ext4_utils.c b/ext4_utils/ext4_utils.c index f4f04d90..5563acab 100644 --- a/ext4_utils/ext4_utils.c +++ b/ext4_utils/ext4_utils.c @@ -304,7 +304,7 @@ void ext4_parse_sb(struct ext4_super_block *sb) if (sb->s_magic != EXT4_SUPER_MAGIC) error("superblock magic incorrect"); - if (sb->s_state != EXT4_VALID_FS) + if ((sb->s_state & EXT4_VALID_FS) != EXT4_VALID_FS) error("filesystem state not valid"); info.block_size = 1024 << sb->s_log_block_size; |