Whamcloud - gitweb
e2fsck: report only one sb corruption
authorJan Kara <jack@suse.cz>
Tue, 19 Jun 2018 15:34:46 +0000 (11:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Jun 2018 15:34:46 +0000 (11:34 -0400)
commit0feae066df5dafb457996fcf3ff0e809cf22bd3f
treeb4e1985b93d68f2329cfbfc05965cdecd47de5d8
parentc93b383c578ed78b56d721aeb37ab44f00beabf7
e2fsck: report only one sb corruption

check_super_value() does not terminate in case of error anymore since
c8b20b40ebf0 "misc: add plausibility checks to
debugfs/tune2fs/dumpe2fs/e2fsck" which removed the PR_FATAL flag from
PR_0_SB_CORRUPT problem. This results in potentially many errors for
superblock being printed including the long message about how to deal
with corrupted superblock. Restore the original behavior of reporting
only one error and also remove the comments 'never get here' as they are
not true anymore.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/super.c