From patchwork Thu Dec 14 14:19:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10112309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A05E60352 for ; Thu, 14 Dec 2017 14:21:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89E0129130 for ; Thu, 14 Dec 2017 14:21:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D3532913F; Thu, 14 Dec 2017 14:21:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F48A29130 for ; Thu, 14 Dec 2017 14:21:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737AbdLNOVB (ORCPT ); Thu, 14 Dec 2017 09:21:01 -0500 Received: from [122.225.81.134] ([122.225.81.134]:26585 "EHLO juanniu018037.ss.mogujie.org" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752690AbdLNOVB (ORCPT ); Thu, 14 Dec 2017 09:21:01 -0500 Received: from juanniu018037.ss.mogujie.org (localhost [127.0.0.1]) by juanniu018037.ss.mogujie.org (8.14.7/8.14.7) with ESMTP id vBEEJQgr127598; Thu, 14 Dec 2017 22:19:26 +0800 Received: (from cgxu@localhost) by juanniu018037.ss.mogujie.org (8.14.7/8.14.7/Submit) id vBEEJQo8127597; Thu, 14 Dec 2017 22:19:26 +0800 From: Chengguang Xu To: eguan@redhat.com, amir73il@gmail.com Cc: fstests@vger.kernel.org, linux-unionfs@vger.kernel.org, Chengguang Xu Subject: [PATCH v4 2/3] common/rc: check syncfs support Date: Thu, 14 Dec 2017 22:19:04 +0800 Message-Id: <1513261145-127502-2-git-send-email-cgxu519@icloud.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1513261145-127502-1-git-send-email-cgxu519@icloud.com> References: <1513261145-127502-1-git-send-email-cgxu519@icloud.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP common/rc: add a check case in _require_xfs_io_command() to support syncfs Signed-off-by: Chengguang Xu --- 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