Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670AbdIEOPF (ORCPT ); Tue, 5 Sep 2017 10:15:05 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:37469 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbdIEOPD (ORCPT ); Tue, 5 Sep 2017 10:15:03 -0400 X-Google-Smtp-Source: ADKCNb46SPG4nA/TiUsogvLUwY/sglyek7xeLrqFv1rK3vpEDHvR1wFSY6lYhSj/5lFFHNRjik0qnA== From: Pali =?utf-8?q?Roh=C3=A1r?= To: OGAWA Hirofumi , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Changing FAT label of mounted file system Date: Tue, 5 Sep 2017 16:14:58 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-117-generic; KDE/4.14.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1630535.xaN8b4foLB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201709051614.58774@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1917 Lines: 50 --nextPart1630535.xaN8b4foLB Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello! On most file system it is possible to change its label at anytime, when=20 mounted or unmounted. But FAT is such special file system on which is=20 label stored in two location, plus one is in directory structure (which=20 cannot be modified when file system is mounted). I would like to ask what about providing FAT specific IOCTL for vfat=20 kernel driver which would allow to change volume label? Currently vfat provides FAT_IOCTL_GET_VOLUME_ID which returns volume=20 serial number, so in similar way it could be extended to provide=20 =46AT_IOCTL_GET_VOLUME_LABEL and FAT_IOCTL_SET_VOLUME_LABEL. Now when partition manager program wants to change label of FAT=20 partition, it first needs to unmount it, then change label and after=20 that mount it again. Providing IOCTL would help partition manager=20 programs to implement operation for changing volume label easier. Also=20 unmounting partition is now always possible (when busy). Next typical usage is opening file manager and in its window "renaming"=20 volume label. Currently such thing is not possible to implement (without=20 hacks) for FAT as once file manager has opened location of FAT partition=20 it needs to be mounted -- and changing volume label is not possible. Other file systems do not have this problem as label is not stored in=20 directory structure, managed by kernel driver. =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1630535.xaN8b4foLB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlmusWIACgkQi/DJPQPkQ1KQPwCfXq7PhrPROzIpzXFsSTfNw2Ra JcIAoKo6oNWw3N3ko7cCnKMDyl1j+4fY =xoB8 -----END PGP SIGNATURE----- --nextPart1630535.xaN8b4foLB--