]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
expand 252 with more corner case tests
authorAllison Henderson <achender@vnet.ibm.com>
Mon, 6 Jun 2011 23:33:50 +0000 (16:33 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2011 12:14:57 +0000 (14:14 +0200)
commit0c95fadc35c8e4505cd9ee3ae8af4a5dc1ed2df3
tree5b1ecb377c46f98e375636be3626e4743ae9b4c9
parentabccd8eb5494bed17f385770cad19f1ec403f7b7
expand 252 with more corner case tests

This patch adds additional punch hole tests to 252
that were used to test ext4 punch hole. The _test_generic_punch
routine has been modified to accept two new flags:

-k To keep the test file between tests.
   This will test the handling of existing holes

-d To not sync the file between tests.
   This will test the handling of delayed extents

Four new corner cases have also been added to the routine:
14. data -> hole @ EOF
15. data -> hole @ 0
16. data -> cache cold ->hole
17. data -> hole in single block file

Signed-off-by: Allison Henderson <achender@us.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
252
252.out
common.punch