From patchwork Mon May 1 23:29:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 13228392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0DD7C77B73 for ; Mon, 1 May 2023 23:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbjEAXaC (ORCPT ); Mon, 1 May 2023 19:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjEAXaB (ORCPT ); Mon, 1 May 2023 19:30:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 745C83588 for ; Mon, 1 May 2023 16:29:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 36E7E224B5 for ; Mon, 1 May 2023 23:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1682983798; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xgtzVPPaH1iyN/VTX2Arshe7gcs5ZjEnV/FjhhHbBvc=; b=StF0Bwf9aPVtMIlIR7jCunj7nE0YtcEWSBM7IxpWh4JuLDszP0fE0yv6Sxfz4uqU2EN9eo lrtd8plyjD0Gbhn6ZOUQkve3b9Zu8VN9gyCFp/SDyeI9jBP4+olqXqqIUAadsUzwGptdxb FNi2sRsg0fSZPwsevyrklT+e3LTF5yE= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7E82C13580 for ; Mon, 1 May 2023 23:29:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MCpiEXVLUGTYUwAAMHmgww (envelope-from ) for ; Mon, 01 May 2023 23:29:57 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 2/2] btrfs-progs: tests: mkfs/021: update to use -O instead of deprecated -R Date: Tue, 2 May 2023 07:29:38 +0800 Message-Id: <20230501232938.10544-2-wqu@suse.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230501232938.10544-1-wqu@suse.com> References: <20230501232938.10544-1-wqu@suse.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org -R option is deprecated since commit 4dbe66ca2f21 ("btrfs-progs: mkfs: make -R|--runtime-features option deprecated"), migrate the test case to follow the change. Signed-off-by: Qu Wenruo --- tests/mkfs-tests/021-rfeatures-quota-rootdir/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mkfs-tests/021-rfeatures-quota-rootdir/test.sh b/tests/mkfs-tests/021-rfeatures-quota-rootdir/test.sh index ec45c1d9..b03e3f61 100755 --- a/tests/mkfs-tests/021-rfeatures-quota-rootdir/test.sh +++ b/tests/mkfs-tests/021-rfeatures-quota-rootdir/test.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Check if mkfs runtime feature quota can handle --rootdir +# Check if mkfs feature quota can handle --rootdir source "$TEST_TOP/common" || exit @@ -38,7 +38,7 @@ run_check dd if=/dev/zero bs=2K count=1 of="$tmp/2K" run_check dd if=/dev/zero bs=4K count=1 of="$tmp/4K" run_check dd if=/dev/zero bs=8K count=1 of="$tmp/8K" -run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f --rootdir "$tmp" -R quota "$TEST_DEV" +run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f --rootdir "$tmp" -O quota "$TEST_DEV" rm -rf -- "$tmp"