VOOZH about

URL: https://www.phoronix.com/news/OverlayFS-Case-Insensitive

⇱ New Patch Series Allows OverlayFS To Work With Casefolding - Phoronix


👁 Phoronix

New Patch Series Allows OverlayFS To Work With Casefolding

Written by Michael Larabel in Linux Storage on 20 May 2025 at 05:22 AM EDT. 10 Comments
Bcachefs lead developer Kent Overstreet posted a patch series today enabling use of the OverlayFS file-system in cojunction with an underlying file-system supporting case-folding for case insensitive files/folders.

With this patch series to support case-folded file-systems, it's wired up through for Bcachefs for its case insensitive support. Kent commented on the patch series:
"This series allows overlayfs and casefolding to safely be used on the same filesystem by providing exclusion to ensure that overlayfs never has to deal with casefolded directories.

Currently, overlayfs can't be used _at all_ if a filesystem even supports casefolding, which is really nasty for users.

Components:

- filesystem has to track, for each directory, "does any _descendent_ have casefolding enabled"

- new inode flag to pass this to VFS layer

- new dcache methods for providing refs for overlayfs, and filesystem methods for safely clearing this flag

- new superblock flag for indicating to overlayfs & dcache "filesystem supports casefolding, it's safe to use provided new dcache methods are used""

The OverlayFS union mount file-system is commonly used for live Linux images, IoT/embedded devices, and similar purposes.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.