From patchwork Wed Jun 28 05:45:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Fengqi X-Patchwork-Id: 9813507 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 7B43F6020A for ; Wed, 28 Jun 2017 05:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7078A283CB for ; Wed, 28 Jun 2017 05:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64A06283FD; Wed, 28 Jun 2017 05:45:43 +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 1EAE4283CB for ; Wed, 28 Jun 2017 05:45:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489AbdF1Fpm (ORCPT ); Wed, 28 Jun 2017 01:45:42 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:51838 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750934AbdF1Fpk (ORCPT ); Wed, 28 Jun 2017 01:45:40 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="20583066" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 28 Jun 2017 13:45:38 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 2C7C847F64C4; Wed, 28 Jun 2017 13:45:39 +0800 (CST) Received: from lufq.5F.5F (10.167.225.63) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 13:45:37 +0800 From: Lu Fengqi To: , Subject: [PATCH] fstests: btrfs: reorder the arguments of btrfs replace in btrfs/027 Date: Wed, 28 Jun 2017 13:45:31 +0800 Message-ID: <20170628054531.17882-1-lufq.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.13.2 MIME-Version: 1.0 X-Originating-IP: [10.167.225.63] X-yoursite-MailScanner-ID: 2C7C847F64C4.ADD03 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lufq.fnst@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The option parser only accept options before non-option argument. Although David Sterba has submitted commit df8c7225ba00 ("btrfs: reorder arguments so that options come first"), but this case seems to be left out. Signed-off-by: Lu Fengqi Reviewed-by: David Sterba --- tests/btrfs/027 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/btrfs/027 b/tests/btrfs/027 index 2c8b458e..625a27f5 100755 --- a/tests/btrfs/027 +++ b/tests/btrfs/027 @@ -91,8 +91,8 @@ run_test() _scratch_mount -o degraded >>$seqres.full 2>&1 # replace $missing_dev with $replace_dev and scrub it to double-check - $BTRFS_UTIL_PROG replace start -B -r $missing_dev_id $SPARE_DEV \ - $SCRATCH_MNT -f >>$seqres.full 2>&1 + $BTRFS_UTIL_PROG replace start -B -f -r $missing_dev_id $SPARE_DEV \ + $SCRATCH_MNT >>$seqres.full 2>&1 if [ $? -ne 0 ]; then echo "btrfs replace failed" _spare_dev_put