From c3594bec4e7f025d6f096c4dad6467d64e4e596b Mon Sep 17 00:00:00 2001 From: Chengguang Xu Date: Fri, 15 Dec 2017 15:47:34 +0800 Subject: [PATCH] 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 --- common/rc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3