From: Darrick J. Wong Date: Thu, 25 Aug 2016 23:28:25 +0000 (-0700) Subject: tests/xfs: don't run tests if cowextsize isn't present X-Git-Tag: v2022.05.01~2375 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5ca088bdd2dfca5f0512223fe1ad05d9e2909f08;p=users%2Fhch%2Fxfstests-dev.git tests/xfs: don't run tests if cowextsize isn't present Some of the tests forgot to check that xfs_io has a cowextsize command, so fix that here. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/215 b/tests/xfs/215 index 7a517d7f1..b9c9ab44d 100755 --- a/tests/xfs/215 +++ b/tests/xfs/215 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/218 b/tests/xfs/218 index 0ab4102c8..887a13598 100755 --- a/tests/xfs/218 +++ b/tests/xfs/218 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/219 b/tests/xfs/219 index df57e07a6..5ae0714c7 100755 --- a/tests/xfs/219 +++ b/tests/xfs/219 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/221 b/tests/xfs/221 index 03d81ac69..3afc75f20 100755 --- a/tests/xfs/221 +++ b/tests/xfs/221 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/223 b/tests/xfs/223 index 7c990a270..3f34bcfa0 100755 --- a/tests/xfs/223 +++ b/tests/xfs/223 @@ -51,6 +51,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/224 b/tests/xfs/224 index bf33d1f18..91033fa9d 100755 --- a/tests/xfs/224 +++ b/tests/xfs/224 @@ -51,6 +51,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/225 b/tests/xfs/225 index 749816f0d..226044191 100755 --- a/tests/xfs/225 +++ b/tests/xfs/225 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/226 b/tests/xfs/226 index bb94d2460..ac702396a 100755 --- a/tests/xfs/226 +++ b/tests/xfs/226 @@ -50,6 +50,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/228 b/tests/xfs/228 index df1fd7aa0..65d7f5133 100755 --- a/tests/xfs/228 +++ b/tests/xfs/228 @@ -54,6 +54,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_xfs_io_command "fpunch" _require_cp_reflink _require_odirect diff --git a/tests/xfs/230 b/tests/xfs/230 index 73f599af8..73c626745 100755 --- a/tests/xfs/230 +++ b/tests/xfs/230 @@ -54,6 +54,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_xfs_io_command "fpunch" _require_cp_reflink _require_odirect diff --git a/tests/xfs/231 b/tests/xfs/231 index 166f6b0ef..d89139a9d 100755 --- a/tests/xfs/231 +++ b/tests/xfs/231 @@ -51,6 +51,7 @@ _supported_os Linux _supported_fs xfs _require_scratch_reflink _require_cp_reflink +_require_xfs_io_command "cowextsize" _require_fiemap old_cow_lifetime=$(cat /proc/sys/fs/xfs/speculative_cow_prealloc_lifetime) diff --git a/tests/xfs/232 b/tests/xfs/232 index 0008dbfde..2438f1fdf 100755 --- a/tests/xfs/232 +++ b/tests/xfs/232 @@ -50,6 +50,7 @@ _cleanup() # real QA test starts here _supported_os Linux _supported_fs xfs +_require_xfs_io_command "cowextsize" _require_scratch_reflink _require_cp_reflink _require_fiemap diff --git a/tests/xfs/243 b/tests/xfs/243 index f6a869241..0bb69c4e3 100755 --- a/tests/xfs/243 +++ b/tests/xfs/243 @@ -55,6 +55,7 @@ _supported_os Linux _supported_fs xfs _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_xfs_io_command "fpunch" _require_xfs_io_command "bmap" "-c" _require_cp_reflink diff --git a/tests/xfs/248 b/tests/xfs/248 index 7e25258af..471205c9d 100755 --- a/tests/xfs/248 +++ b/tests/xfs/248 @@ -51,6 +51,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/249 b/tests/xfs/249 index b82d89cb3..0a7fbf15a 100755 --- a/tests/xfs/249 +++ b/tests/xfs/249 @@ -51,6 +51,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/251 b/tests/xfs/251 index 4f74772db..48a027c75 100755 --- a/tests/xfs/251 +++ b/tests/xfs/251 @@ -53,6 +53,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/254 b/tests/xfs/254 index c8ac41236..ac87e49e9 100755 --- a/tests/xfs/254 +++ b/tests/xfs/254 @@ -53,6 +53,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/255 b/tests/xfs/255 index 93ad13ebb..97cbb77be 100755 --- a/tests/xfs/255 +++ b/tests/xfs/255 @@ -53,6 +53,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/256 b/tests/xfs/256 index d5cf71b8e..a182953d4 100755 --- a/tests/xfs/256 +++ b/tests/xfs/256 @@ -53,6 +53,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/257 b/tests/xfs/257 index 624f5e388..1fc401b58 100755 --- a/tests/xfs/257 +++ b/tests/xfs/257 @@ -54,6 +54,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" rm -f $seqres.full diff --git a/tests/xfs/258 b/tests/xfs/258 index 243e853b3..a3ffc8991 100755 --- a/tests/xfs/258 +++ b/tests/xfs/258 @@ -54,6 +54,7 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_xfs_io_command "falloc" +_require_xfs_io_command "cowextsize" _require_odirect rm -f $seqres.full diff --git a/tests/xfs/315 b/tests/xfs/315 index 62d7fcfa6..6170540c0 100755 --- a/tests/xfs/315 +++ b/tests/xfs/315 @@ -49,6 +49,7 @@ _supported_fs xfs _require_cp_reflink _require_scratch_reflink _require_error_injection +_require_xfs_io_command "cowextsize" _require_xfs_io_error_injection "free_extent" rm -f $seqres.full diff --git a/tests/xfs/326 b/tests/xfs/326 index 2cd6eda01..36bdcf486 100755 --- a/tests/xfs/326 +++ b/tests/xfs/326 @@ -50,6 +50,7 @@ _supported_os Linux _supported_fs xfs _require_cp_reflink _require_scratch_reflink +_require_xfs_io_command "cowextsize" _require_xfs_io_error_injection "refcount_finish_one" rm -f $seqres.full