From patchwork Mon May 1 23:29:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 13228391 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 34433C77B7C for ; Mon, 1 May 2023 23:30:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232354AbjEAXaA (ORCPT ); Mon, 1 May 2023 19:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjEAX37 (ORCPT ); Mon, 1 May 2023 19:29:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719553584 for ; Mon, 1 May 2023 16:29:58 -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 1D89721F15 for ; Mon, 1 May 2023 23:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1682983797; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=t6mCiGRV9KFdM9DGh+DFgTa4o/u46RbwzwRtkC2iP6U=; b=f76r6xClJC36jToQ5GCk25VuB+wEzhRdc5kd/kXECHf8weiEi7YXFzsp2hauygGBEIN5w5 Rp0pRG1ZqemiBgB3HL5SmlBwpMe82a3J8UJRO2tzbqPHvgGlUYG/Xx7KL1idXjkLb4C9g0 tLqbtZaM8/jApyu5PEVjr+WgjzZLvAw= 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 5DEC713580 for ; Mon, 1 May 2023 23:29:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YtaGCHRLUGTYUwAAMHmgww (envelope-from ) for ; Mon, 01 May 2023 23:29:56 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/2] btrfs-progs: doc: fix the indent on the ORPHAN_OBJECTID Date: Tue, 2 May 2023 07:29:37 +0800 Message-Id: <20230501232938.10544-1-wqu@suse.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org When compiling the documents, we have the following warning: ~/btrfs-progs/Documentation/dev/On-disk-format.rst:369: WARNING: Bullet list ends without a blank line; unexpected unindent. It's caused by a mismatched indent, just fix it. Signed-off-by: Qu Wenruo --- Documentation/dev/On-disk-format.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/dev/On-disk-format.rst b/Documentation/dev/On-disk-format.rst index 8cbbaf37..9e8a9f7e 100644 --- a/Documentation/dev/On-disk-format.rst +++ b/Documentation/dev/On-disk-format.rst @@ -366,8 +366,8 @@ is located in the ``ROOT_TREE`` and is of the following form. +-----------------------------------+ - There is no item body associated with this key. All required information is - contained within the key itself and the ``ROOT_ITEM`` associated with the - objectid contained in ``offset`` + contained within the key itself and the ``ROOT_ITEM`` associated with the + objectid contained in ``offset`` When the file system is mounted again after failure, the ``ROOT_TREE`` is searched for all orphan keys and the process is resumed for each one using the 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"