News: 0001582758

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Case-Insensitive OverlayFS Support Merged For Linux 6.18

([Linux Storage] 6 Hours Ago Case-Insensitive OverlayFS)


For benefiting container usage on Linux, support for case-folding / case insensitive files and folder support has been added to OverlayFS.

André Almeida with Igalia has been working for a while on adding case-fold layer support to OverlayFS for use with container tooling. For this configuration to work, every layer needs to have the same encoding setting, such as the Unicode version and flags. Almeida explained in the prior [1]patch series :

"When merge layers, ovl uses a red-black tree to check if a given dentry name from a lower layers already exists in the upper layer. For merging case-insensitive names, we need to store then in tree casefolded. However, when displaying to the user the dentry name, we need to respect the name chosen when the file was created (e.g. Picture.PNG, instead of picture.png). To achieve this, I create a new field for cache entries that stores the casefolded names and a function ovl_strcmp() that uses this name for searching the rb_tree. For composing the layer, ovl uses the original name, keeping it consistency with whatever name the user created.

The rest of the patches are mostly for checking if casefold is being consistently used across the layers and dropping the mount restrictions that prevented case-insensitive filesystems to be mounted."

While Linux case-folding is typically supported on a per-directory basis, in the case of OverlayFS it is an all-or-nothing.

That OverlayFS case-folding support is now [2]merged for Linux 6.18.



[1] https://lore.kernel.org/all/20250814-tonyk-overlayfs-v5-0-c5b80a909cbd@igalia.com/

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cf06d791f840be97f726ecaaea872a876ff62436



There's a trick to the Graceful Exit. It begins with the vision to
recognize when a job, a life stage, a relationship is over -- and to let
go. It means leaving what's over without denying its validity or its
past importance in our lives. It involves a sense of future, a belief
that every exit line is an entry, that we are moving on, rather than out.
The trick of retiring well may be the trick of living well. It's hard to
recognize that life isn't a holding action, but a process. It's hard to
learn that we don't leave the best parts of ourselves behind, back in the
dugout or the office. We own what we learned back there. The experiences
and the growth are grafted onto our lives. And when we exit, we can take
ourselves along -- quite gracefully.
-- Ellen Goodman