summaryrefslogtreecommitdiff
path: root/e2fsck/pass2.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-01-27 21:40:53 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-01-27 21:40:53 -0500
commit7e0282c5f21add344b306876ca999aecd4d5fd0c (patch)
treec493e276e417b8464617c2d5c0cb44262d4dee24 /e2fsck/pass2.c
parent18d12963335b04a402d097af1d714e8708805ada (diff)
downloade2fsprogs-7e0282c5f21add344b306876ca999aecd4d5fd0c.tar.gz
Fixed missing not_fixed branch in e2fsck so that if the frag size field in
the inode is not fixed, the inode_bad_map bitmap won't be cleared. Thanks to Stephen Tweedie for pointing this out.
Diffstat (limited to 'e2fsck/pass2.c')
-rw-r--r--e2fsck/pass2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c
index ef86d317..9719141c 100644
--- a/e2fsck/pass2.c
+++ b/e2fsck/pass2.c
@@ -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) {