From: Josef Bacik <josef@toxicpanda.com>
To: Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v7 2/2] btrfs: Introduce new mount option to skip block group items scan
Date: Thu, 4 Jun 2020 09:17:03 -0400 [thread overview]
Message-ID: <8303441a-d192-7c7c-bd22-fdce2bb894bc@toxicpanda.com> (raw)
In-Reply-To: <20200604071807.61345-3-wqu@suse.com>
On 6/4/20 3:18 AM, Qu Wenruo wrote:
> [PROBLEM]
> There are some reports of corrupted fs which can't be mounted due to
> corrupted extent tree.
>
> However under such situation, it's more likely the fs/subvolume trees
> are still fine.
>
> For such case we normally go btrfs-restore and salvage as much as we
> can. However btrfs-restore can't list subvolumes as "btrfs subv list",
> making it harder to restore a fs.
>
> [ENHANCEMENT]
> This patch will introduce a new mount option "rescue=skipbg" to skip
> the mount time block group scan, and use chunk info solely to populate
> fake block group cache.
>
> The mount option has the following dependency:
> - RO mount
> Obviously.
>
> - No dirty log.
> Either there is no log, or use rescue=nologreplay mount option.
>
> - No way to remoutn RW
> Similar to rescue=nologreplay option.
>
> This allow kernel to accept all extent tree corruption, even when the
> whole extent tree is corrupted, and allow user to salvage data and
> subvolume info.
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
next prev parent reply other threads:[~2020-06-04 13:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 7:18 [PATCH v7 0/2] btrfs: Introduce new rescue= mount options Qu Wenruo
2020-06-04 7:18 ` [PATCH v7 1/2] btrfs: Introduce "rescue=" mount option Qu Wenruo
2020-06-04 13:15 ` Josef Bacik
2020-06-05 10:04 ` Anand Jain
2020-06-05 11:36 ` David Sterba
2020-06-08 8:11 ` Anand Jain
2020-06-08 9:39 ` Qu Wenruo
2020-06-10 14:47 ` David Sterba
2020-06-10 15:11 ` David Sterba
2020-06-04 7:18 ` [PATCH v7 2/2] btrfs: Introduce new mount option to skip block group items scan Qu Wenruo
2020-06-04 13:17 ` Josef Bacik [this message]
2020-06-05 10:03 ` Anand Jain
2020-06-05 9:22 ` [PATCH v7 0/2] btrfs: Introduce new rescue= mount options Anand Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8303441a-d192-7c7c-bd22-fdce2bb894bc@toxicpanda.com \
--to=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox