From: David Sterba <dsterba@suse.cz>
To: Anand Suveer Jain <asj@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>,
dsterba@suse.cz, linux-btrfs@vger.kernel.org,
thiago.macieira@intel.com, dave.hansen@intel.com
Subject: Re: [PATCH] btrfs: derive f_fsid with dev_t only when temp_fsid is active
Date: Mon, 14 Sep 2026 18:39:25 +0200 [thread overview]
Message-ID: <20260914163925.GL54722@twin.jikos.cz> (raw)
In-Reply-To: <c04f73b1-cf55-40ef-bb47-d518603bcd8c@kernel.org>
On Mon, Sep 14, 2026 at 04:28:25PM +0800, Anand Suveer Jain wrote:
>
>
> >> . For stable kernels, this flag will keep the new f_fsid derivation
> >> disabled by default.
>
>
> > No. That still gives you a broken fsid on upgrading to the next major kernel, doesn't it?
>
> Upgrading to a _major_ kernel would require an extra step to re-encrypt
> with the new FSID _for some configs_.
> A one-time operational overhead.
It's fairly common to boot different kernel versions on the same system,
so the upgrade is perhaps installing it but the assumptions about what's
working do not change. I have mixed results upgrading kernel and Nvidia
drivers and imagining that I'd have to re-encrypt anything just between
reboots sounds like usability antipattern.
> > Maybe a new flag on the file system itself to indicate that its
> > stable FSID is computed using the new scheme.
>
> A mkfs-time or runtime switch, something like:
> /sys/fs/btrfs/<UUID>/enable_collision_free_fsid
> (just as an example) is an option.
Even as a conceptual idea this does not improve things, users do not
care about this level of detail. We already have enough problems
defining correct behaviour with fsid, metadata uuid in combination with
the temp_fsid and seeding.
next prev parent reply other threads:[~2026-09-14 16:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 18:06 [PATCH] btrfs: derive f_fsid with dev_t only when temp_fsid is active Anand Jain
2026-09-12 21:58 ` Dave Hansen
2026-09-13 1:05 ` Anand Suveer Jain
2026-09-13 1:13 ` Dave Hansen
2026-09-13 2:43 ` Anand Suveer Jain
2026-09-14 3:42 ` Anand Suveer Jain
2026-09-14 5:28 ` David Woodhouse
2026-09-14 8:28 ` Anand Suveer Jain
2026-09-14 10:47 ` David Woodhouse
2026-09-14 12:28 ` Anand Suveer Jain
2026-09-14 16:41 ` David Sterba
2026-09-14 16:39 ` David Sterba [this message]
2026-09-14 16:46 ` David Sterba
2026-09-18 8:59 ` Anand Suveer 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=20260914163925.GL54722@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=asj@kernel.org \
--cc=dave.hansen@intel.com \
--cc=dwmw2@infradead.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=thiago.macieira@intel.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