Skip to contentSkip to conversation

fstests: test for fallocate capability in more tests

PATCH In review Eric Sandeen 2 participants 2 messages Apr 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

tests/generic/286 +1 -0
index 00cb87b7..8be4fbc9 100755
@@ -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
tests/generic/404 +1 -0
index 14decdb7..69d7e71e 100755
@@ -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`
tests/generic/569 +1 -0
index 4573be5a..385fa59f 100755
@@ -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
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Eric Sandeen

These 3 tests explicitly call xfs_io's fallocate command, test whether it works before running the test.

Looks ok,

--D

Quoted 39 lines

---

tests/generic/286 +1 -0
index 00cb87b7..8be4fbc9 100755
@@ -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
tests/generic/404 +1 -0
index 14decdb7..69d7e71e 100755
@@ -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`
tests/generic/569 +1 -0
index 4573be5a..385fa59f 100755
@@ -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