diff mbox

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

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

Commit Message

Chengguang Xu Dec. 14, 2017, 2:19 p.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(+)

Comments

Amir Goldstein Dec. 14, 2017, 2:35 p.m. UTC | #1
On Thu, Dec 14, 2017 at 4:19 PM, Chengguang Xu <cgxu519@icloud.com> wrote:
> common/rc: add a check case in _require_xfs_io_command() to support syncfs
>
> Signed-off-by: Chengguang Xu <cgxu519@icloud.com>

looks good.

> ---
>  common/rc | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/common/rc b/common/rc
> index fc9a4f5..da7c827 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
> --
> 1.8.3.1
>
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/common/rc b/common/rc
index fc9a4f5..da7c827 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