Whamcloud - gitweb
e2fsck: If the superblock is corrupt, automatically retry with the backup sb
authorTheodore Ts'o <tytso@mit.edu>
Fri, 7 Sep 2007 20:54:11 +0000 (16:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Sep 2007 20:54:11 +0000 (16:54 -0400)
commitcd538080ab6e4bf64886b42f0bfa2fa47d44d20d
tree0c341d1a0527446a46711c184bd0b3c787fb3ef5
parentba9d929d914654f8dba36c634bb537ecf0f0bb04
e2fsck: If the superblock is corrupt, automatically retry with the backup sb

E2fsck currently only retries with the backup superblock if the
primary superblock is missing (e.g., overwritten with garbage).  If
the superblock is just corrupted enough that it looks like ext2/3/4
superblock, but it is corrupt enough that ext2fs_open2() returns an
error, e2fsck stops without retrying.  Let's fix this oversight.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c
tests/f_crashdisk/expect.1
tests/f_misstable/expect.1
tests/f_zero_group/expect.1
tests/f_zero_super/expect.1