From patchwork Mon Sep 9 22:11:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xu X-Patchwork-Id: 11140241 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AB4914ED for ; Wed, 11 Sep 2019 03:44:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2127021D7B for ; Wed, 11 Sep 2019 03:44:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726426AbfIKDoA (ORCPT ); Tue, 10 Sep 2019 23:44:00 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:60684 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726341AbfIKDoA (ORCPT ); Tue, 10 Sep 2019 23:44:00 -0400 X-IronPort-AV: E=Sophos;i="5.64,491,1559491200"; d="scan'208";a="75263794" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 11 Sep 2019 11:43:58 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 899014CE030A for ; Wed, 11 Sep 2019 11:43:46 +0800 (CST) Received: from localhost.localdomain (10.167.220.84) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Sep 2019 11:44:01 +0800 From: Yang Xu To: CC: Yang Xu Subject: [PATCH v2] generic/566: use _require_xfs_quota_foreign and remove -f option Date: Tue, 10 Sep 2019 06:11:43 +0800 Message-ID: <1568067103-17616-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <20190910042851.ybwqgmh2a4xue3f4@XZHOUW.usersys.redhat.com> References: <20190910042851.ybwqgmh2a4xue3f4@XZHOUW.usersys.redhat.com> MIME-Version: 1.0 X-Originating-IP: [10.167.220.84] X-yoursite-MailScanner-ID: 899014CE030A.AB6E8 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: xuyang2018.jy@cn.fujitsu.com X-Spam-Status: No Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org xfstests should decide if xfs_quota needs the -f option by _require_xfs_quota_foreign, not write the -f option after $XFS_QUOTA_PROG manually. The later way will cause unexpected error on an old system which xfsprogs doesn't support the -f option. Signed-off-by: Yang Xu Tested-by: Murphy Zhou Acked-by: Murphy Zhou Acked-by: Zorro Lang --- tests/generic/566 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/generic/566 b/tests/generic/566 index e8491e54..44f71cce 100755 --- a/tests/generic/566 +++ b/tests/generic/566 @@ -34,6 +34,7 @@ _supported_os Linux _supported_fs generic _require_scratch _require_quota +_require_xfs_quota_foreign _require_user rm -f $seqres.full @@ -45,13 +46,13 @@ _qmount dir="$SCRATCH_MNT/dummy" mkdir -p $dir chown $qa_user $dir -$XFS_QUOTA_PROG -x -f -c "limit -g bsoft=100k bhard=100k $qa_user" $SCRATCH_MNT +$XFS_QUOTA_PROG -x -c "limit -g bsoft=100k bhard=100k $qa_user" $SCRATCH_MNT $XFS_IO_PROG -f -c 'pwrite -S 0x58 0 1m' $dir/foo >> $seqres.full chown $qa_user "${dir}/foo" _user_do "chgrp $qa_user ${dir}/foo" 2>&1 | _filter_scratch ls -la ${dir} >> $seqres.full -$XFS_QUOTA_PROG -x -f -c 'report -hag' $SCRATCH_MNT >> $seqres.full +$XFS_QUOTA_PROG -x -c 'report -hag' $SCRATCH_MNT >> $seqres.full # success, all done status=0