e2fsck: Go back to the original superblock if the backup sb is invalid
commit606638906a0229323d1b2871fdb0d45ea0e7ff62
authorTheodore Ts'o <tytso@mit.edu>
Fri, 29 May 2009 03:40:18 +0000 (28 23:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 29 May 2009 03:40:18 +0000 (28 23:40 -0400)
tree206dc5930dbaa75c7d0bd0320bd90c933f2df99b
parent6dce532867a0f8d6a99a2c6fe049de411dc109f2
e2fsck: Go back to the original superblock if the backup sb is invalid

In the case where the block group descriptors appear corrupt, e2fsck
will try to use the backup superblock.  However, it could be that the
backup superblock itself is completely corrupted, in which e2fsck
should go back to the original superblock instead of refusing to fix
the file system.

Addresses-Debian-Bug: #516820

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