[lkml]   [2017]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Changing FAT label of mounted file system
Pali Rohár <> writes:

> Hello!


> On most file system it is possible to change its label at anytime, when
> mounted or unmounted. But FAT is such special file system on which is
> label stored in two location, plus one is in directory structure (which
> cannot be modified when file system is mounted).
> I would like to ask what about providing FAT specific IOCTL for vfat
> kernel driver which would allow to change volume label?

I have no objection to add this ioctl though, there is really needs of

For example, ext4's volume name is sb->s_volume_name, right? And no
ioctl to change it, so I guess the app does read-modify-write
superblock. If so, there is theoretical race with umount and super block
update of ext4 (yes, although updating superblock is rare timing). So
ext4 is unsafe actually to rewrite volume_name on the mounted fs.

Well, anyway, if there is the patch to add ioctl, again, I have no

OGAWA Hirofumi <>

 \ /
  Last update: 2017-09-05 18:06    [W:0.038 / U:1.320 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site