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>
This commit is contained in:
Dave Chinner
2014-02-04 11:52:26 +11:00
committed by Dave Chinner
parent 180adeb433
commit 9c5d298030
5 changed files with 87 additions and 16 deletions
+24 -4
View File
@@ -36,7 +36,12 @@ eecb7aa303d121835de05028751d301c
eecb7aa303d121835de05028751d301c
17. data -> hole in single block file
0: [0..7]: extent
13535fd4d496bf0b74bb2335aa4d1b31
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
1. into a hole
daa100df6e6711906b61c9ab5aa16032
2. into allocated space
@@ -74,7 +79,12 @@ eecb7aa303d121835de05028751d301c
eecb7aa303d121835de05028751d301c
17. data -> hole in single block file
0: [0..7]: extent
13535fd4d496bf0b74bb2335aa4d1b31
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
1. into a hole
0: [0..7]: extent
1: [8..39]: hole
@@ -118,7 +128,12 @@ eecb7aa303d121835de05028751d301c
eecb7aa303d121835de05028751d301c
17. data -> hole in single block file
0: [0..7]: extent
13535fd4d496bf0b74bb2335aa4d1b31
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
1. into a hole
0: [0..7]: extent
1: [8..39]: hole
@@ -162,4 +177,9 @@ eecb7aa303d121835de05028751d301c
eecb7aa303d121835de05028751d301c
17. data -> hole in single block file
0: [0..7]: extent
13535fd4d496bf0b74bb2335aa4d1b31
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*