From b9852cd87b42f79d569db68c3fdefe4a8f48ede1 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 5 May 2001 05:14:59 +0000 Subject: [PATCH] ChangeLog, pass2.c: pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors from ext2fs_read_dir_block(). --- e2fsck/ChangeLog | 5 +++++ e2fsck/pass2.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 084a604a..d08bd3af 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2001-05-05 Theodore Tso + + * pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors + from ext2fs_read_dir_block(). + 2001-05-01 Theodore Tso * unix.c (PRS): Validate the completion information file 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;