Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.c:
[tools/e2fsprogs.git]
/
e2fsck
/
pass1b.c
diff --git
a/e2fsck/pass1b.c
b/e2fsck/pass1b.c
index
df787e8
..
957a9ee
100644
(file)
--- a/
e2fsck/pass1b.c
+++ b/
e2fsck/pass1b.c
@@
-601,7
+601,9
@@
static int clone_file_block(ext2_filsys fs,
return BLOCK_ABORT;
}
p->num_bad--;
- if (p->num_bad == 1)
+ if (p->num_bad == 1 &&
+ !ext2fs_test_block_bitmap(ctx->block_illegal_map,
+ *block_nr))
ext2fs_unmark_block_bitmap(ctx->block_dup_map,
*block_nr);
*block_nr = new_block;