From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Pali Rohár" <pali.rohar@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: Changing FAT label of mounted file system
Date: Wed, 06 Sep 2017 00:35:10 +0900 [thread overview]
Message-ID: <87a8295fbl.fsf@devron> (raw)
In-Reply-To: <201709051614.58774@pali> ("Pali Rohár"'s message of "Tue, 5 Sep 2017 16:14:58 +0200")
Pali Roh�r <pali.rohar@gmail.com> writes:
> Hello!
Hi,
> 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
apps?
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
objection.
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2017-09-05 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 14:14 Changing FAT label of mounted file system Pali Rohár
2017-09-05 15:35 ` OGAWA Hirofumi [this message]
2017-10-30 15:35 ` Pali Rohár
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8295fbl.fsf@devron \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pali.rohar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).