[PATCH v2 0/2] fat: Add FS_IOC_GETFSLABEL / FS_IOC_SETFSLABEL ioctls
From: Ethan Ferguson
Date: Tue Feb 17 2026 - 18:09:11 EST
Add support for reading / writing to the volume label of a FAT filesystem
via the FS_IOC_GETFSLABEL and FS_IOC_SETFSLABEL ioctls.
Volume label changes are persisted in the volume label dentry in the root
directory as well as the bios parameter block.
v2:
* Create volume label dentry if not present
* Respect msdos shortname rules
* Add locking
* Fixed bugs (EFAULT from copy_to_user, uninitialized buffer_head)
Ethan Ferguson (2):
fat: Add FS_IOC_GETFSLABEL ioctl
fat: Add FS_IOC_SETFSLABEL ioctl
fs/fat/dir.c | 51 ++++++++++++++++++++++++++++
fs/fat/fat.h | 7 ++++
fs/fat/file.c | 79 ++++++++++++++++++++++++++++++++++++++++++++
fs/fat/inode.c | 26 +++++++++++++--
fs/fat/namei_msdos.c | 4 +--
5 files changed, 163 insertions(+), 4 deletions(-)
base-commit: 9f2693489ef8558240d9e80bfad103650daed0af
--
2.43.0