generic: Add check for required keep_size/punch_hole/zero_range/collapse_range

Tests need the exact operations to reproduce some issues by
--replay-ops so skip tests rather than one operation if a required
operation/flag in tests is not supported.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Xiao Yang
2020-01-07 16:40:53 +08:00
committed by Eryu Guan
parent e288b4bade
commit af37fc423f
4 changed files with 8 additions and 0 deletions
+3
View File
@@ -40,6 +40,9 @@ rm -f $seqres.full
_supported_fs generic
_supported_os Linux
_require_test
_require_xfs_io_command "falloc" "-k"
_require_xfs_io_command "fpunch"
_require_xfs_io_command "fzero"
run_fsx()
{