From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz
Cc: l@damenly.org, Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 3/3] btrfs-progs: tune: add fsck runs before and after a full conversion
Date: Wed, 6 Dec 2023 08:03:13 +1030 [thread overview]
Message-ID: <e853465c-b1bd-4205-805e-48bf8cd05645@gmx.com> (raw)
In-Reply-To: <20231205164636.GL2751@twin.jikos.cz>
On 2023/12/6 03:16, David Sterba wrote:
> On Mon, Dec 04, 2023 at 08:52:15PM +1030, Qu Wenruo wrote:
>>> And maybe an option to skip check? People who want to convert to BG tree
>>> usually have large filesystems, then the original check can be killed
>>> because of OOM...
>>
>> I don't want to allow it to be skipped. Maybe I can add some logic to go
>> lowmem mode depending on the filesystem size.
>
> We have power users who know what they're doing and no way to skip the
> check is considered a usability bug. The check can fail for reasons that
> may not be due to detected problems but due to lack of memory. The
> heuristic regarding lowmem or original mode does not sound like a good
> idea to me, it seems too unreliable.
That's true.
>
>> Just don't want to risk any possible corruption.
>
> Instead of forcing the check in all cases, by default it can skip the
> conversion and print a warning with and recommendation to run check.
> With an option to override it it would start right away.
>
So you mean without any special option, the btrfstune for bgt/csum
change would be no-op but only outputting a warning?
This would be stronger than the 10s delay of btrfs check, and require
less work (no need to export btrfs check).
But I'm not that confident if most users would even follow the
recommendation...
Thanks,
Qu
prev parent reply other threads:[~2023-12-05 21:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-04 6:56 [PATCH 0/3] btrfs-progs: tune: run "btrfs check" before and after full fs conversion Qu Wenruo
2023-12-04 6:56 ` [PATCH 1/3] btrfs-progs: check: remove inode cache clearing functionality Qu Wenruo
2023-12-05 16:47 ` David Sterba
2023-12-04 6:56 ` [PATCH 2/3] btrfs-progs: check: export a dedicated btrfs_check() function Qu Wenruo
2023-12-04 6:56 ` [PATCH 3/3] btrfs-progs: tune: add fsck runs before and after a full conversion Qu Wenruo
2023-12-04 9:44 ` Su Yue
2023-12-04 10:11 ` l
2023-12-04 10:22 ` Qu Wenruo
2023-12-05 16:46 ` David Sterba
2023-12-05 21:33 ` Qu Wenruo [this message]
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=e853465c-b1bd-4205-805e-48bf8cd05645@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.cz \
--cc=l@damenly.org \
--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