From e79d1b23edd7ce551030128bfe12821f4412cc89 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 18 Jun 1999 01:06:59 +0000 Subject: [PATCH] ChangeLog, pass5.c: pass5.c (check_block_end): Fix fencepost condition where when clearing the block padding we were missing the last position in the bitmap. --- e2fsck/ChangeLog | 6 ++++++ e2fsck/pass5.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index c93d12c..c4c103d 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +1999-03-19 + + * pass5.c (check_block_end): Fix fencepost condition where when + clearing the block padding we were missing the last position + in the bitmap. + 1999-05-17 * unix.c (reserve_stdio_fds): Add safety check in case diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index 0dccb02..274052e 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -438,7 +438,7 @@ static void check_block_end(e2fsck_t ctx) for (i = save_blocks_count + 1; i <= end; i++) { if (!ext2fs_test_block_bitmap(fs->block_map, i)) { if (fix_problem(ctx, PR_5_BLOCK_BMAP_PADDING, &pctx)) { - for (i = save_blocks_count + 1; i < end; i++) + for (i = save_blocks_count + 1; i <= end; i++) ext2fs_mark_block_bitmap(fs->block_map, i); ext2fs_mark_bb_dirty(fs); -- 1.8.3.1