Re: [PATCH v2 1/1] exfat: Add support for FS_IOC_{GET,SET}FSLABEL

From: Christoph Hellwig
Date: Mon Aug 18 2025 - 01:54:54 EST


On Sun, Aug 17, 2025 at 10:32:00AM -0400, Ethan Ferguson wrote:
> Both e2fsprogs and btrfs-progs now use the FS_IOC_{GET,SET}FSLABEL
> ioctls to change the label on a mounted filesystem.

Additionally userspace writes to blocks on mounted file systems are
dangerous. They can easily corrupt data when racing with updates
performed by the kernel, and are impossible when the the
CONFIG_BLK_DEV_WRITE_MOUNTED config option is disabled.