From 1fad9048b51f66df8813022f33a48fbf7a0a26b7 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 7 Jul 1998 05:44:43 +0000 Subject: [PATCH] ChangeLog, badblocks.c: badblocks.c (test_disk): Don't clear the existing bad blocks list when using e2fsck -c, since it may cause blocks with marginal errors to be dropped from the bad blocks list. --- e2fsck/ChangeLog | 6 ++++++ e2fsck/badblocks.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index de11531..e7b6700 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +1998-07-07 Theodore Ts'o + + * badblocks.c (test_disk): Don't clear the existing bad blocks + list when using e2fsck -c, since it may cause blocks with + marginal errors to be dropped from the bad blocks list. + Mon Jul 6 10:32:11 1998 Theodre Ts'o * pass1.c (e2fsck_pass1): Use ext2fs_sb structure for diff --git a/e2fsck/badblocks.c b/e2fsck/badblocks.c index f3adc3c..bd7cafa 100644 --- a/e2fsck/badblocks.c +++ b/e2fsck/badblocks.c @@ -114,7 +114,7 @@ fatal: void test_disk(e2fsck_t ctx) { - read_bad_blocks_file(ctx, 0, 1); + read_bad_blocks_file(ctx, 0, 0); } static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, -- 1.8.3.1