public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* casefold is using unsuitable case mapping table
@ 2025-04-22 12:31 Björn JACKE
  2025-04-24 19:53 ` Gabriel Krisman Bertazi
  0 siblings, 1 reply; 4+ messages in thread
From: Björn JACKE @ 2025-04-22 12:31 UTC (permalink / raw)
  To: linux-fsdevel

Hi,

I started to experiment with the casefold feature of ext4 and some other
filesystems. I was hoping to get some significant performance gains for Samba
server with large directories.

It turns out though that the case insensitive feature is not usable because it
does not match the case mapping tables that other operating systems use. More
specifically, the german letter "ß" is treated as a case equivanten of "ss".

There is an equivalent of "ß" and "ss in some other scopes, also AD LDAP treats
them as an equivante. For systems that requires "lossless" case conversion
however should not treat ß and ss as equivalent. This is also why a filesystem
should never ever do that

Since 2017 there is a well-defined uppercase version of the codepoint (U+00DF)
of the "ß" letter in Unicode: U+1E9E, this could eventually be used but I
haven't seen any filesystem using that so far. This would be a possible and
lossless case equivalent, but well, that's actually another thing to discuss.

The important point is to _not_ use the ß/ss case equicalent. The casefold
feature is mainly useless otherwise.

Can this be changed without causing too much hassle?

Cheers
Björn

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-09 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 12:31 casefold is using unsuitable case mapping table Björn JACKE
2025-04-24 19:53 ` Gabriel Krisman Bertazi
2025-04-25 11:40   ` Björn JACKE
2025-06-09 18:12     ` Gabriel Krisman Bertazi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox