fstests: test for fallocate capability in more tests

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>
This commit is contained in:
Eric Sandeen
2020-04-15 15:21:55 -05:00
committed by Eryu Guan
parent 3e4ccc86bb
commit 4f9638d1c0
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -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`
+1
View File
@@ -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