News › networking

Linux 7.2 Adds File System Case Folding Detection for Windows NFS Clients

By Zayden R., June 15, 2026

Linux 7.2 kernel adds proper case-insensitive file system detection for NFS and SMB servers. This fixes Windows NFS client compatibility issues that required servers to guess case folding behavior.

Linux 7.2 is introducing a noteworthy enhancement to its Virtual File System (VFS) by adding the ability to detect case-folding behavior of local file systems. This update, now merged by Linus Torvalds, enables the kernel to communicate whether a file system is case-insensitive, using new file_kattr flags. Previously, file servers had to make educated guesses about this behavior, often resulting in inaccuracies.

The implementation, spearheaded by Christian Brauner, incorporates case-insensitive and case-nonpreserving flags into the fileattr_get interface. This means that file servers like NFSD, KSMBD, and those operating in user space can now accurately query and report the case-folding behavior back to clients. This change is crucial for environments where compatibility with Windows NFS clients is a priority, as these clients rely on precise case sensitivity information for seamless operation.

A range of file systems is covered under this new implementation, including FAT, exFAT, NTFS3, HFS, HFS+, XFS, CIFS, NFS, VBoxSF, and ISO9660. For file systems not explicitly addressed, the default behavior remains case-sensitive and case-preserving, consistent with standard POSIX norms. Consequently, file systems like ext4 and Btrfs will continue to exhibit case-sensitive behavior, while mounted Windows shares will correctly reflect their case-insensitive nature.

The update addresses a specific need for Windows NFS clients, which require servers to report case insensitivity to function properly with Win32 applications. Without correct case folding data, Windows clients often perform redundant LOOKUP and READDIR operations as they hunt for different case variations of the same file. Now, NFSD utilizes this new capability to convey case folding through NFSv3 PATHCONF and implements NFSv4 attributes FATTR4_CASE_INSENSITIVE and FATTR4_CASE_PRESERVING. These attributes have long existed in NFS protocols, but until now, Linux servers couldn't report them with precision. KSMBD similarly reports case folding through FS_ATTRIBUTE_INFORMATION for SMB clients.

This development is particularly beneficial in multi-protocol environments where a single file service must cater to both NFS and SMB clients. Previously, Linux NFS servers had to guess the case folding behavior, leading to potential mismatches when communicating with Windows clients. While the Linux NFS client has supported case-insensitive shares for some time, especially for Hammerspace NFS servers, this update enhances the server side by reducing unnecessary network traffic and correcting compatibility issues with Win32 applications expecting case-insensitive file systems.

For those running NFS or SMB servers on Linux 7.2, this means your Windows clients will receive more accurate case sensitivity information, significantly improving performance and compatibility. Additionally, user-space file servers gain from the new fileattr UAPI exposure, allowing them to detect and report case folding behavior just as kernel servers do.

Sources

Practice this on a real machine

The Linux Camp teaches these topics as hands-on labs on real virtual machines, verified as you type.