linux/fs/fat
Chuck Lever c92db2ca72
fat: Implement fileattr_get for case sensitivity
Report FAT's case sensitivity behavior via the FS_XFLAG_CASEFOLD
and FS_XFLAG_CASENONPRESERVING flags. FAT filesystems are
case-insensitive by default.

MSDOS supports a 'nocase' mount option that enables case-sensitive
behavior; check this option when reporting case sensitivity.

VFAT long filename entries preserve case; without VFAT, only
uppercased 8.3 short names are stored. MSDOS with 'nocase' also
preserves case since the name-formatting code skips upcasing when
'nocase' is set. Check both options when reporting case preservation.

Reviewed-by: Jan Kara <jack@suse.cz>
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-3-e62cc8200435@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
History 2026-05-11 16:50:28 +02:00
..
.kunitconfig fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
cache.c fat: remove unused parameter 2026-01-20 19:44:21 -08:00
dir.c fat: Track metadata bhs in fs-private inode part 2026-03-26 15:03:32 +01:00
fat.h fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
fat_test.c fat: fix stack frame size warnings in KUnit tests 2026-03-26 14:36:03 +01:00
fatent.c fat: Track metadata bhs in fs-private inode part 2026-03-26 15:03:32 +01:00
file.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
inode.c fat: Track metadata bhs in fs-private inode part 2026-03-26 15:03:32 +01:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile fat: Add KUnit tests for checksums and timestamps 2021-08-13 13:13:18 -06:00
misc.c fat: add KUnit tests for timestamp conversion helpers 2026-03-24 23:37:16 +01:00
namei_msdos.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
namei_vfat.c fat: Implement fileattr_get for case sensitivity 2026-05-11 16:50:28 +02:00
nfs.c fat: fix uninitialized field in nostale filehandles 2024-02-22 15:38:55 -08:00