common/rc: check syncfs support
authorChengguang Xu <cgxu519@icloud.com>
Fri, 15 Dec 2017 07:47:34 +0000 (15:47 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 24 Dec 2017 13:30:58 +0000 (21:30 +0800)
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>
common/rc

index cebd36347ecea47d08226eeec835f55dac4b9ee2..9216efdbb18e3947de6417a687d48d1c754f7ecd 100644 (file)
--- 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`
                ;;
        "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
        *)
                testio=`$XFS_IO_PROG -c "help $command" 2>&1`
        esac