Whamcloud - gitweb
Fixed missing not_fixed branch in e2fsck so that if the frag size field in
authorTheodore Ts'o <tytso@mit.edu>
Fri, 28 Jan 2005 02:40:53 +0000 (21:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 28 Jan 2005 02:40:53 +0000 (21:40 -0500)
the inode is not fixed, the inode_bad_map bitmap won't be cleared.  Thanks to
Stephen Tweedie for pointing this out.

e2fsck/pass2.c

index ef86d31..9719141 100644 (file)
@@ -1260,7 +1260,8 @@ extern int e2fsck_process_bad_inode(e2fsck_t ctx, ext2_ino_t dir,
                if (fix_problem(ctx, PR_2_FRAG_ZERO, &pctx)) {
                        *frag = 0;
                        inode_modified++;
-               }
+               } else
+                       not_fixed++;
                pctx.num = 0;
        }
        if (fsize && *fsize) {