fstests: test for fallocate capability in more tests
authorEric Sandeen <sandeen@sandeen.net>
Wed, 15 Apr 2020 20:21:55 +0000 (15:21 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 19 Apr 2020 16:42:11 +0000 (00:42 +0800)
These 3 tests explicitly call xfs_io's fallocate command, test whether
it works before running the test.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/286
tests/generic/404
tests/generic/569

index 00cb87b7f4fe384bb997aa5d7f05727e1665f5fe..8be4fbc91859daeaa74cb8de74151cb0d4b9c2d4 100755 (executable)
@@ -23,6 +23,7 @@ _supported_fs generic
 _supported_os Linux
 
 _require_test
+_require_xfs_io_command "falloc"
 _require_seek_data_hole
 
 src=$TEST_DIR/seek_copy_testfile
index 14decdb724a771a6e86abacc0efaa42f8c31240f..69d7e71e2de264c348f178cc96bc4057567e5fa8 100755 (executable)
@@ -76,6 +76,7 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_test
+_require_xfs_io_command "falloc"
 _require_xfs_io_command "finsert"
 
 blksize=`_get_block_size $TEST_DIR`
index 4573be5a2e9f874138a3f8ffaabc01f2d609e3a5..385fa59f3566cc3e89dbcfa406b2a3527ea5f89f 100755 (executable)
@@ -29,6 +29,7 @@ _cleanup()
 # real QA test starts here
 _supported_os Linux
 _supported_fs generic
+_require_xfs_io_command "falloc"
 _require_test_program swapon
 _require_scratch_swapfile