]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mmp: fix 64-bit handling of s_mmp_block
authorAndreas Dilger <adilger@dilger.ca>
Wed, 4 Dec 2013 01:02:12 +0000 (20:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Dec 2013 01:22:16 +0000 (20:22 -0500)
commit2fe2d408a4e231eb5d2342b7f3dbd155563aa755
tree656713c8cbbe2c6c6d01ed79498fb1865bada71f
parent17abb05f515d72c78667108a95c904ef65bcc6aa
mmp: fix 64-bit handling of s_mmp_block

Fix the checking of s_mmp_block in e2fsck_pass1() and
ext2fs_mmp_read() to handle the high 32 bits of s_blocks_count.
Remove redundant check of s_mmp_block in do_dump_mmp() right before
ext2fs_mmp_read() is called.

Also fix s_blocks_count_hi in check_backup_super_block(), since it
cannot use the ext2fs_blocks_count() helper easily.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
e2fsck/pass1.c
e2fsck/super.c
lib/ext2fs/mmp.c