generic: _test_generic_punch not blocksize clean
authorDave Chinner <dchinner@redhat.com>
Tue, 4 Feb 2014 00:52:26 +0000 (11:52 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Feb 2014 00:52:26 +0000 (11:52 +1100)
commit9c5d298030449563ced3f91e06adb13562891468
tree2ba2665d6b6eac2ac331e74d1cfcc7c805c0444e
parent180adeb433d0bb7460c463c5adf6da8166cd8018
generic: _test_generic_punch not blocksize clean

Test 17 of _test_generic_punch uses the filesystem block size to do
a sub-single block punch. The result of this is a files of
different sizes and md5sums when the filesystem block size changes.
However the only difference in file contents if the length of the
file - the zeroed region is always in the same place. Hence we can
use hexdump rather than md5sum to check the output remains
consistent and the hole remains in the correct place despite the
changing block sizes.

Fix up all the golden output for all the tests that use this
function, too.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/punch
tests/generic/255.out
tests/generic/316.out
tests/xfs/242.out
tests/xfs/252.out