public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label
@ 2018-01-10 10:21 ChenGuanqiao
  2018-01-10 10:21 ` [PATCH v7 1/3] fs: fat: Add fat filesystem partition volume label in local structure ChenGuanqiao
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: ChenGuanqiao @ 2018-01-10 10:21 UTC (permalink / raw)
  To: hirofumi; +Cc: linux-kernel, ChenGuanqiao

The FAT filesystem partition volume label can be read with
FAT_IOCTL_GET_VOLUME_LABEL and written with FAT_IOCTL_SET_VOLUME_LABEL.

FAT volume label (volume name) is exactly same stored in boot sector and root
directory. Thus, the boot sector just needs to be upgrade when the label
writing.

v7:
1. fixed volume label name check function.
2. automatically local rootdir.
3. remove some lock.
4. fixed some memory leaks.
v6:
1. fixed volume label name check function.
2. add volume label entry if no volume label.
v5:
1. find the volume label entry through the scan function.
2. the volume label only retains the d-characters (reference from Ecma-107).
v4:
1. read/write volume label from/to the location of the respective version.
2. correct volume label check reference from mkfs.fat.
3. fixed some code issue.
v3:
1. write volume label both boot sector and root directory.
v2:
1. add filesystem version check.
2. add diretory permissions check.
3. add volume label string check.
4. fixed part of return value.
5. fixed some indent issue.
6. remove sync_dirty_buffer().

ChenGuanqiao (3):
  fs: fat: Add fat filesystem partition volume label in local structure
  fs: fat: Add volume label entry method function
  fs: fat: add ioctl method in fat filesystem driver

 fs/fat/dir.c                  |  53 ++++++++++++++++
 fs/fat/fat.h                  |   6 ++
 fs/fat/file.c                 | 140 ++++++++++++++++++++++++++++++++++++++++++
 fs/fat/inode.c                |  15 ++++-
 include/uapi/linux/msdos_fs.h |   2 +
 5 files changed, 213 insertions(+), 3 deletions(-)

--
2.11.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-14 13:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-10 10:21 [PATCH v7 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label ChenGuanqiao
2018-01-10 10:21 ` [PATCH v7 1/3] fs: fat: Add fat filesystem partition volume label in local structure ChenGuanqiao
2018-01-14 13:18   ` OGAWA Hirofumi
2018-01-10 10:21 ` [PATCH v7 2/3] fs: fat: Add volume label entry method function ChenGuanqiao
2018-01-14 12:50   ` OGAWA Hirofumi
2018-01-10 10:21 ` [PATCH v7 3/3] fs: fat: add ioctl method in fat filesystem driver ChenGuanqiao
2018-01-14 13:17   ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox