EXT4 Case-Insensitive Directories/File-Name Lookups Coming With Linux 5.2
Written by Michael Larabel in Linux Storage on 26 April 2019 at 11:01 AM EDT. 71 Comments
LINUX STORAGE --
The Linux 5.2 kernel will allow the EXT4 file-system on a per-directory basis to selectively support case-insensitive files/folders.

These patches by Collabora developer Gabriel Krisman Bertazi have long been in development for supporting case-insensitive filenames and UTF-8 encoding support. It seems now the design and implementation are in good enough standing as EXT4 maintainer Ted Ts'o has queued the patches into his tree.

This EXT4 case-insensitive file-name lookup feature works on a per-directory basis when an empty directory is enabled by flipping the +F inode attribute. This includes UTF-8/Unicode case handling and preserving of the actual case on-disk. By making it per-directory, the support can be enabled by system administrators where desired while not interfering with the long-time expectations of Linux/Unix case-sensitive file-systems.

This implementation is just for EXT4 and does not affect other file-systems, though all the Unicode bits are being added as a generic Unicode subsystem within the kernel's file-system area.

One current limitation of this case-insensitive directories/filenames is not supporting both the encoding and per-directory encryption on the same file-system at the same time while eventually they aim to be able to support both features concurrently. The queued work also adds the character set encoding data to the EXT4 superblock with this technically being a backwards incompatible feature.


Over the span of several commits introducing the Unicode handling and then the EXT4 bits, the work is now in place within ext4's dev branch ahead of the Linux 5.2 merge window that will open following the Linux 5.1 stable release in early May. Linux 5.2 should debut as stable with this EXT4 case-insensitive file-name lookup functionality and a lot more features around July.
About The Author
Author picture

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 10,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 or contacted via MichaelLarabel.com.

Related Linux Storage News
Popular News This Week