Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 4/4] btrfs: introduce new "rescue=ignoresuperflags" mount option
Date: Fri, 14 Jun 2024 07:16:07 +0930	[thread overview]
Message-ID: <2e2a6e1c-de05-482e-973a-6899cbc14d08@gmx.com> (raw)
In-Reply-To: <20240612194234.GL18508@twin.jikos.cz>



在 2024/6/13 05:12, David Sterba 写道:
> On Tue, Jun 11, 2024 at 02:51:38PM +0930, Qu Wenruo wrote:
>> This new mount option would allow the kernel to skip the super flags
>> check, it's mostly to allow the kernel to do a rescue mount of an
>> interrupted checksum conversion.
>
> This is for future-proofing but the current known super flags should be
> at least defined in the kernel code

That's already done in this patch:

https://lore.kernel.org/linux-btrfs/57b836631f9c5dcb24ace616bdb76a37b8d084b2.1717818761.git.wqu@suse.com/T/#u

> and with a warning or info message.
> BTRFS_SUPER_FLAG_CHANGING_FSID and _V2.

I can add some extra warning messages, but currently we do not do any
messages for rescue mount options at all, since user is definitely aware
of some problems then go with rescue.
(And rescue has to be paired with ro, which should already rejected the
mount once when tried without ro, thus the end user definitely knows
what they are doing)

Thus I'm more or less fine without any error messages for now.

Thanks,
Qu
>
> Same comment as for the imetacsum, missing sysfs.c entry.
>

  reply	other threads:[~2024-06-13 21:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-11  5:21 [PATCH 0/4] btrfs: rescue= mount options enhancement to support interrupted csum conversion Qu Wenruo
2024-06-11  5:21 ` [PATCH 1/4] btrfs: remove unused Opt enums Qu Wenruo
2024-06-12 19:31   ` David Sterba
2024-06-11  5:21 ` [PATCH 2/4] btrfs: output the unrecognized super flags as hex Qu Wenruo
2024-06-11  5:21 ` [PATCH 3/4] btrfs: introduce new "rescue=ignoremetacsums" mount option Qu Wenruo
2024-06-12 19:38   ` David Sterba
2024-06-13 21:28     ` Qu Wenruo
2024-06-16 18:17       ` David Sterba
2024-06-16 21:24         ` Qu Wenruo
2024-06-11  5:21 ` [PATCH 4/4] btrfs: introduce new "rescue=ignoresuperflags" " Qu Wenruo
2024-06-12 19:42   ` David Sterba
2024-06-13 21:46     ` Qu Wenruo [this message]
2024-06-11 16:43 ` [PATCH 0/4] btrfs: rescue= mount options enhancement to support interrupted csum conversion Josef Bacik
2024-06-13 21:23   ` Qu Wenruo

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=2e2a6e1c-de05-482e-973a-6899cbc14d08@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=dsterba@suse.cz \
    --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