From: Chengguang Xu Date: Fri, 15 Dec 2017 07:47:34 +0000 (+0800) Subject: common/rc: check syncfs support X-Git-Tag: v2022.05.01~1725 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=c3594bec4e7f025d6f096c4dad6467d64e4e596b common/rc: check syncfs support Add a check case in _require_xfs_io_command() to support syncfs Signed-off-by: Chengguang Xu Reviewed-by: Amir Goldstein Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index cebd3634..9216efdb 100644 --- a/common/rc +++ b/common/rc @@ -2111,6 +2111,10 @@ _require_xfs_io_command() "utimes" ) testio=`$XFS_IO_PROG -f -c "utimes" 0 0 0 0 $testfile 2>&1` ;; + "syncfs") + touch $testfile + testio=`$XFS_IO_PROG -c "syncfs" $testfile 2>&1` + ;; *) testio=`$XFS_IO_PROG -c "help $command" 2>&1` esac