diff mbox

[v5,2/3] common/rc: check syncfs support

Message ID 1513324055-77618-2-git-send-email-cgxu519@icloud.com (mailing list archive)
State New, archived
Headers show

Commit Message

Chengguang Xu Dec. 15, 2017, 7:47 a.m. UTC
common/rc: add a check case in _require_xfs_io_command() to support syncfs

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
---
 common/rc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/common/rc b/common/rc
index 035ad22..3133bdd 100644
--- a/common/rc
+++ b/common/rc
@@ -2106,6 +2106,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