From: Christoph Hellwig <hch@infradead.org>
To: Filipe Manana <fdmanana@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
fstests@vger.kernel.org, linux-btrfs@vger.kernel.org,
Filipe Manana <fdmanana@suse.com>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] btrfs: test create a bunch of files with name hash collision
Date: Tue, 10 Mar 2026 06:13:50 -0700 [thread overview]
Message-ID: <abAZDvPLRbCeQh1D@infradead.org> (raw)
In-Reply-To: <CAL3q7H5r5_FuTSUM_5TqFGFPSZ4qC=qG49_JuLpUfzFCa=8YyQ@mail.gmail.com>
On Fri, Mar 06, 2026 at 02:55:23PM +0000, Filipe Manana wrote:
> > Umm, file systems must handle an unlimited number of name collisions.
> > While going read-only is of course really bad, just rejecting them
> > can also pretty easily break things.
>
> I don't think in practice we get a large enough number of names with a
> crc32c hash collision in btrfs.
That's not the point. Posix and Linux file systems don't have an
error code or defined condition for adding this file name would cause
a hash collision and we were to lazy to deal with it.
> Adding support for an unlimited number of collisions is simply not
> easily doable, it would require an on-disk format change (new key
> type, item, etc, update btrfs-progs, etc).
> The motivation for that is very low, as I'm not aware of users ever complaining.
Well, how would they know this happened? The users only sees the file
system acting weird in completely unpredictable ways.
next prev parent reply other threads:[~2026-03-10 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 14:34 [PATCH] btrfs: test create a bunch of files with name hash collision fdmanana
2026-03-05 17:56 ` Boris Burkov
2026-03-05 17:59 ` Filipe Manana
2026-03-06 14:35 ` Christoph Hellwig
2026-03-06 14:55 ` Filipe Manana
2026-03-10 13:13 ` Christoph Hellwig [this message]
2026-03-10 13:40 ` Filipe Manana
2026-03-10 10:29 ` Daniel Vacek
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=abAZDvPLRbCeQh1D@infradead.org \
--to=hch@infradead.org \
--cc=fdmanana@kernel.org \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
/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