]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic: don't assume preallocation is supported when reflinks are supported
authorChristoph Hellwig <hch@lst.de>
Sat, 10 Nov 2018 11:51:42 +0000 (12:51 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Nov 2018 13:16:04 +0000 (21:16 +0800)
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>
tests/generic/176
tests/generic/372
tests/generic/414
tests/generic/415
tests/generic/447
tests/generic/515

index e0c0f22532e2847e03696c0d841439b399ce84c9..a084578ae346456f1e926d0d3d19f8e3853047b4 100755 (executable)
@@ -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"
index 44914453dbae71355fa406e67522c6161902b06e..21cf283b8743a3dc8b62d6cbfe336f08436a8c60 100755 (executable)
@@ -31,6 +31,7 @@ _cleanup()
 _supported_os Linux
 _supported_fs generic
 _require_scratch_reflink
+_require_xfs_io_command "falloc"
 _require_xfs_io_command "fiemap"
 _require_scratch_explicit_shared_extents
 
index 7c76d58013edd3d58e657cabffa68dcc5e5add11..f9f2674441c808097cacabd63012dcda052df45f 100755 (executable)
@@ -32,6 +32,7 @@ _cleanup()
 _supported_os Linux
 _supported_fs generic
 _require_scratch_reflink
+_require_xfs_io_command "falloc"
 _require_xfs_io_command "fiemap"
 
 echo "Format and mount"
index 14fbc232c0d98b3cb629e51c6fcb4dbbca48fd87..0b7554ff7fdb9b60552e9258285ccf678df7e8b3 100755 (executable)
@@ -34,6 +34,7 @@ _supported_fs generic
 _supported_os Linux
 _require_scratch_reflink
 _require_cp_reflink
+_require_xfs_io_command "fpunch"
 
 _scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
 _scratch_mount || _fail "mount failed"
index 3775e49fabd7d8d23b00ce9e78e44c806f45892f..1e7cb3c83321d68fb5454b16e13cde3036564006 100755 (executable)
@@ -32,6 +32,7 @@ _supported_os Linux
 _require_scratch_reflink
 _require_cp_reflink
 _require_test_program "punch-alternating"
+_require_xfs_io_command "fpunch"
 
 rm -f "$seqres.full"
 
index 1ae9fbfe4b6a25e4863fdc08eee41314b7def535..f9e0b3be9a9b818057df3497586f198fa3181157 100755 (executable)
@@ -31,6 +31,7 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 _require_scratch_reflink
+_require_xfs_io_command "falloc"
 
 rm -f $seqres.full