summaryrefslogtreecommitdiff
path: root/e2fsck/pass2.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-05-05 05:14:59 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-05-05 05:14:59 +0000
commitb9852cd87b42f79d569db68c3fdefe4a8f48ede1 (patch)
tree6af8033bc51fcc36adeb68f72b5e4a4871fcee40 /e2fsck/pass2.c
parent1cca4d60367c89bcdeb2ee6f1d54ab6f393f289d (diff)
downloade2fsprogs-b9852cd87b42f79d569db68c3fdefe4a8f48ede1.tar.gz
ChangeLog, pass2.c:
pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors from ext2fs_read_dir_block().
Diffstat (limited to 'e2fsck/pass2.c')
-rw-r--r--e2fsck/pass2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c
index 955f5eff..ca412726 100644
--- a/e2fsck/pass2.c
+++ b/e2fsck/pass2.c
@@ -383,6 +383,8 @@ static int check_dir_block(ext2_filsys fs,
#endif
cd->pctx.errcode = ext2fs_read_dir_block(fs, block_nr, buf);
+ if (cd->pctx.errcode == EXT2_ET_DIR_CORRUPTED)
+ cd->pctx.errcode = 0; /* We'll handle this ourselves */
if (cd->pctx.errcode) {
if (!fix_problem(ctx, PR_2_READ_DIRBLOCK, &cd->pctx)) {
ctx->flags |= E2F_FLAG_ABORT;