linux/fs/vboxsf
Chuck Lever ef14aa143f
vboxsf: Implement fileattr_get for case sensitivity
Upper layers such as NFSD need a way to query whether a
filesystem handles filenames in a case-sensitive manner. Report
VirtualBox shared folder case handling behavior via the
FS_XFLAG_CASEFOLD flag.

The case sensitivity property is queried from the VirtualBox host
service at mount time and cached in struct vboxsf_sbi. The host
determines case sensitivity based on the underlying host filesystem
(for example, Windows NTFS is case-insensitive while Linux ext4 is
case-sensitive).

VirtualBox shared folders always preserve filename case exactly
as provided by the guest. The host interface does not expose a
separate case-preserving property; leaving
FS_XFLAG_CASENONPRESERVING unset reports the POSIX-default
case-preserving behavior, which matches vboxsf semantics.

The callback is registered in all three inode_operations
structures (directory, file, and symlink) to ensure consistent
reporting across all inode types.

Reviewed-by: Roland Mainz <roland.mainz@nrubsig.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Link: https://patch.msgid.link/20260507-case-sensitivity-v14-11-e62cc8200435@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-05-11 16:50:29 +02:00
..
dir.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
file.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
Kconfig vbox: Enable VBOXGUEST and VBOXSF_FS on ARM64 2025-01-07 15:57:23 +01:00
Makefile
shfl_hostintf.h vboxsf: Use flexible arrays for trailing string member 2023-07-26 14:55:35 -07:00
super.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
utils.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
vboxsf_wrappers.c fs: vboxsf: fix a kernel-doc warning 2023-12-08 15:32:31 -07:00
vfsmod.h vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00