diff mbox

[v2,2/3] common/rc: add a check case in _require_xfs_io_command() to support syncfs.

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

Commit Message

Chengguang Xu Dec. 7, 2017, 2:22 a.m. UTC
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 911dba3..4827ba6 100644
--- a/common/rc
+++ b/common/rc
@@ -2096,6 +2096,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