Whamcloud - gitweb
ChangeLog, pass5.c:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Jun 1999 01:06:59 +0000 (01:06 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Jun 1999 01:06:59 +0000 (01:06 +0000)
  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
e2fsck/pass5.c

index c93d12c..c4c103d 100644 (file)
@@ -1,3 +1,9 @@
+1999-03-19    <tytso@rsts-11.mit.edu>
+
+       * 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    <tytso@rsts-11.mit.edu>
 
        * unix.c (reserve_stdio_fds): Add safety check in case
index 0dccb02..274052e 100644 (file)
@@ -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);