aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@icloud.com>2017-12-15 15:47:34 +0800
committerEryu Guan <eguan@redhat.com>2017-12-24 21:30:58 +0800
commitc3594bec4e7f025d6f096c4dad6467d64e4e596b (patch)
tree2c68e5a6232f0fa405cb038be3c85359ac58e7a1
parent2b4eae7fd825ffe2a966b2b1d8a040dcb999edf7 (diff)
downloadxfstests-c3594bec4e7f025d6f096c4dad6467d64e4e596b.tar.gz
common/rc: check syncfs support
Add a check case in _require_xfs_io_command() to support syncfs Signed-off-by: Chengguang Xu <cgxu519@icloud.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--common/rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rc b/common/rc
index cebd36347e..9216efdbb1 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