From patchwork Tue Sep 20 05:23:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 9341033 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 01751607EE for ; Tue, 20 Sep 2016 05:27:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E46C72913F for ; Tue, 20 Sep 2016 05:27:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5FD92915C; Tue, 20 Sep 2016 05:27:38 +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 6BFAC2913F for ; Tue, 20 Sep 2016 05:27:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbcITF1h (ORCPT ); Tue, 20 Sep 2016 01:27:37 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:62014 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752731AbcITF1h (ORCPT ); Tue, 20 Sep 2016 01:27:37 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="11139576" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 20 Sep 2016 13:27:33 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 03CB74623477; Tue, 20 Sep 2016 13:27:33 +0800 (CST) Received: from localhost.localdomain (10.167.220.69) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.279.2; Tue, 20 Sep 2016 13:27:31 +0800 From: Xiao Yang To: CC: , , Xiao Yang Subject: [PATCH v3] common/rc: fix fsmap check Date: Tue, 20 Sep 2016 13:23:12 +0800 Message-ID: <1474348992-27909-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <20160920044809.GB3059@birch.djwong.org> References: <20160920044809.GB3059@birch.djwong.org> MIME-Version: 1.0 X-Originating-IP: [10.167.220.69] X-yoursite-MailScanner-ID: 03CB74623477.A4D14 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't need -T to detect GETFSMAP and the flag doesn't exist on really old versions of xfs_io, so just get rid of it. Signed-off-by: Xiao Yang Reviewed-by: Darrick J. Wong --- common/rc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/rc b/common/rc index 13afc6a..52a75c5 100644 --- a/common/rc +++ b/common/rc @@ -2049,8 +2049,7 @@ _require_xfs_io_command() _notrun "xfs_io $command support is missing" ;; "fsmap" ) - testio=`$XFS_IO_PROG -T -F -c "fsmap" \ - $TEST_DIR 2>&1` + testio=`$XFS_IO_PROG -f -c "fsmap" $testfile 2>&1` echo $testio | egrep -q "Inappropriate ioctl" && \ _notrun "xfs_io $command support is missing" ;;