]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/{436,445}: check falloc support
authorAmir Goldstein <amir73il@gmail.com>
Tue, 26 Feb 2019 14:09:01 +0000 (16:09 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sat, 2 Mar 2019 14:37:23 +0000 (22:37 +0800)
The sanity test case in those tests (i.e. 13..17)
are all skipped in fs with no falloc support, but the tests
are reported to pass.

For example, from 445.full:

 File system supports the default behavior.
 File system does not support fallocate.
 Allocation size: 4096
 17. Test file with unwritten extents, data-hole-data inside page
 Test skipped as fs doesn't support unwritten extents.

Explicitly check for falloc support before running those tests
so they would be properly reported as skipped.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/436
tests/generic/445
tests/generic/group

index 3ed22c960e54ad40fb2a9edcfce56c281e12ef72..a3ef70e54c87329b73fa17edee9fa737b8f50627 100755 (executable)
@@ -24,6 +24,8 @@ _supported_os Linux
 
 _require_test
 _require_seek_data_hole
+# All the seek sanity test cases here do falloc
+_require_xfs_io_command "falloc"
 
 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
 
index e697cca03b269117d5eb53dc13d7e12fe2f72bbe..694913aeb03b08c2eff82334bc7a68abe1bd696b 100755 (executable)
@@ -24,6 +24,8 @@ _supported_os Linux
 
 _require_test
 _require_seek_data_hole
+# All the seek sanity test cases here do falloc
+_require_xfs_io_command "falloc"
 
 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
 
index 31011ac872c2a5d7536d423617f30be37776ad22..15227b6713f7319b3a833a3ed19f0a8de3e7b796 100644 (file)
 433 auto quick copy
 434 auto quick copy
 435 auto encrypt
-436 auto quick rw seek
+436 auto quick rw seek prealloc
 437 auto quick dax
 438 auto
 439 auto quick punch
 442 blockdev
 443 auto quick rw
 444 auto quick acl
-445 auto quick rw seek
+445 auto quick rw seek prealloc
 446 auto quick rw punch
 447 auto clone
 448 auto quick rw seek