Whamcloud - gitweb
ChangeLog, pass2.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 5 May 2001 05:14:59 +0000 (05:14 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 May 2001 05:14:59 +0000 (05:14 +0000)
  pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors from
   ext2fs_read_dir_block().

e2fsck/ChangeLog
e2fsck/pass2.c

index 084a604..d08bd3a 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-05  Theodore Tso  <tytso@valinux.com>
+
+       * pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors
+               from ext2fs_read_dir_block().
+
 2001-05-01  Theodore Tso  <tytso@valinux.com>
 
        * unix.c (PRS): Validate the completion information file
index 955f5ef..ca41272 100644 (file)
@@ -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;