generic: don't assume preallocation is supported when reflinks are supported

Various reflink tests currently use fallocate to preallocate space
without first checking that preallocations are supported. Add
explicit checks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Christoph Hellwig
2018-11-10 12:51:42 +01:00
committed by Eryu Guan
parent ad91ed8a66
commit 31735e301e
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@ _cleanup()
_supported_os Linux
_require_scratch_reflink
_require_cp_reflink
_require_xfs_io_command "fpunch"
_require_test_program "punch-alternating"
rm -f "$seqres.full"