]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/unix.c
e2fsck: only retry to open the file system when the superblock is corrupt
authorTheodore Ts'o <tytso@mit.edu>
Mon, 25 Jun 2018 01:09:59 +0000 (21:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Jun 2018 01:09:59 +0000 (21:09 -0400)
commit51a3b0b3dcce2e35091292c33fcc88bd4ddf6bd8
tree4d04b9fb7b739f35b5c5b91114cf0a6ac6b610e7
parent10b6e089e589a3bfc2b1ee0c9aca98183e4b9b32
e2fsck: only retry to open the file system when the superblock is corrupt

Previously we were always retrying the ext2fs_open2() call with the
EXT2_FLAG_IGNORE_SB_ERRORS flag.  It only makes sense to do this if
the superblock is reported as corrupt.  Otherwise, it's a waste of
time, and results in printing an extra set of error messages to annoy
the user.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c
tests/f_detect_xfs/expect
tests/j_ext_dumpe2fs/expect