]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/problem.h
e2fsck: Handle a pass 2 "should never happen" error gracefully
authorTheodore Ts'o <tytso@mit.edu>
Wed, 12 Mar 2008 20:10:48 +0000 (16:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 12 Mar 2008 20:10:48 +0000 (16:10 -0400)
commitd45edec0fb2e5d100d122fdda0914560c64def44
tree934ff33948526d3ad67c6880daa9be05a7ea2924
parent46d9a7462b7e796fb34c09c02e635ab77012c2bb
e2fsck: Handle a pass 2 "should never happen" error gracefully

Turns out a "should never happen" error can indeed happen very easily
if a directory with an htree index has an incorrect, and too-large,
i_size field.  This patch fixes this so that we handle this situation
gracefully, allowing filesystems with this error to be fixed.

In another patch I will clean up the specific problem which caused the
internal "should never happen" error from happening at all, but patch
will prevent e2fsck from crashing, and prompt the user to remove the
htree index, so it can be rebuilt again after pass 3.

Thanks to Bas van Schaik at Tetra for giving me access to his system
so this problem could be debugged.

Addresses-Launchpad-Bug: #129395

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