From: Filipe Manana Date: Tue, 4 Apr 2017 06:34:29 +0000 (+0100) Subject: common/rc: check fs supports xfs_io falloc's specific flags X-Git-Tag: v2022.05.01~2101 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a62c85dbabf31296bda9c6c37cbccf75a1735438;p=users%2Fhch%2Fxfstests-dev.git 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 --- diff --git a/common/rc b/common/rc index ae3add319..78a2101f3 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" \