common: create _test_block_boundaries in common/punch
authorLukas Czerner <lczerner@redhat.com>
Thu, 13 Mar 2014 04:18:56 +0000 (15:18 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 13 Mar 2014 04:18:56 +0000 (15:18 +1100)
commit9589e15873a0bcaa2f5dc2a865eb6bcfa770857e
tree40c09ef839a672c6ba1593a923fa0d97f3b3d4b6
parent212f48fdf529889c81f421bf0de63f70d0e905f9
common: create _test_block_boundaries in common/punch

Create new function _test_block_boundaries() which is testing content of
the blocks after the operation such as zero, or punch hole. The test is
doing the operation around block boundaries to assure correct behaviour
of the operation on block unaligned ranges.

This has been based on test xfs/290 which has been changed to use this
new function. A small change to the output file was required.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/punch
tests/xfs/290
tests/xfs/290.out