commit | cd538080ab6e4bf64886b42f0bfa2fa47d44d20d | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Sep 07 16:54:11 2007 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Sep 07 16:54:11 2007 -0400 |
tree | 0c341d1a0527446a46711c184bd0b3c787fb3ef5 | |
parent | ba9d929d914654f8dba36c634bb537ecf0f0bb04 [diff] |
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>