Whamcloud - gitweb
Fix fencepost error in resize2fs caught by valgrind
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Aug 2005 23:57:04 +0000 (18:57 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Aug 2005 23:57:04 +0000 (18:57 -0500)
commit2787276ec59e1d52087d307bc30446d088ec65bc
tree87d0e6e954ab7459b88a16c4d17d0c06c38c3449
parentb28a6e96af53338c303e0f25e28ea02705a1d680
Fix fencepost error in resize2fs caught by valgrind

There was a off-by-one fencepost error in the logic used to check if
we avoid copying zero-filled blocks when moving an inode table down by
a block or two.  Thanks to valgrind for catching it.  As far as I know
this fencepost error wasn't causing any actual problems, but it was
definitely a bug.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/ChangeLog
resize/resize2fs.c