From patchwork Tue Dec 12 03:09:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10106169 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 74DD460753 for ; Tue, 12 Dec 2017 03:11:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67017299A4 for ; Tue, 12 Dec 2017 03:11:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BB95299A8; Tue, 12 Dec 2017 03:11:42 +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 0B5B4299A6 for ; Tue, 12 Dec 2017 03:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbdLLDLl (ORCPT ); Mon, 11 Dec 2017 22:11:41 -0500 Received: from [122.225.81.134] ([122.225.81.134]:40589 "EHLO juanniu018037.ss.mogujie.org" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752292AbdLLDLj (ORCPT ); Mon, 11 Dec 2017 22:11:39 -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 vBC3AK3S151303; Tue, 12 Dec 2017 11:10:20 +0800 Received: (from cgxu@localhost) by juanniu018037.ss.mogujie.org (8.14.7/8.14.7/Submit) id vBC3AKbu151302; Tue, 12 Dec 2017 11:10:20 +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 v3 2/3] common/rc: add a check case in _require_xfs_io_command() to support syncfs. Date: Tue, 12 Dec 2017 11:09:38 +0800 Message-Id: <1513048179-151065-2-git-send-email-cgxu519@icloud.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1513048179-151065-1-git-send-email-cgxu519@icloud.com> References: <1513048179-151065-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 Signed-off-by: Chengguang Xu --- common/rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/rc b/common/rc index a5c4ace..a31ea48 100644 --- a/common/rc +++ b/common/rc @@ -2105,6 +2105,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