diff options
author | Chengguang Xu <cgxu519@icloud.com> | 2017-12-15 15:47:34 +0800 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-12-24 21:30:58 +0800 |
commit | c3594bec4e7f025d6f096c4dad6467d64e4e596b (patch) | |
tree | 2c68e5a6232f0fa405cb038be3c85359ac58e7a1 | |
parent | 2b4eae7fd825ffe2a966b2b1d8a040dcb999edf7 (diff) | |
download | xfstests-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/rc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |