From a62c85dbabf31296bda9c6c37cbccf75a1735438 Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Tue, 4 Apr 2017 07:34:29 +0100 Subject: [PATCH] common/rc: check fs supports xfs_io falloc's specific flags For example NFS 4.2 supports fallocate but it does not support its KEEP_SIZE flag, so we want to skip tests that use fallocate with that flag on filesystems that don't support it. Suggested-by: Eryu Guan Signed-off-by: Filipe Manana Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index ae3add31..78a2101f 100644 --- a/common/rc +++ b/common/rc @@ -2022,7 +2022,7 @@ _require_xfs_io_command() testio=`$XFS_IO_PROG -F -f -c "chproj 0" $testfile 2>&1` ;; "falloc" ) - testio=`$XFS_IO_PROG -F -f -c "falloc 0 1m" $testfile 2>&1` + testio=`$XFS_IO_PROG -F -f -c "falloc $param 0 1m" $testfile 2>&1` ;; "fpunch" | "fcollapse" | "zero" | "fzero" | "finsert" | "funshare") testio=`$XFS_IO_PROG -F -f -c "pwrite 0 20k" -c "fsync" \ -- 2.39.5