Skip to content

fs: fat: add ioctl to modify fat filesystem partion volume label

Chen Guanqiao lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest3 patches 2 repliesIn review
  2. v83 patches 6 repliesSuperseded
  3. v73 patches 3 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v63 patches2 repliesSuperseded
v52 patches2 repliesSuperseded
v42 patches1 replySuperseded
v32 patches1 replySuperseded
v12 patches1 replySuperseded

Changes in v9 from the cover letter

1. Add necessary lock to protect write method.
2. Fix some code bug.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fs: fat: Add fat filesystem partition volume label in local structurefs/fat/fat.h fs/fat/inode.c include/uapi/linux/msdos_fs.h+2 -00 replies
2/3fs: fat: Add volume label entry method functionfs/fat/dir.c+0 -01 reply
3/3fs: fat: add ioctl method in fat filesystem driverfs/fat/file.c+1 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label

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.

And, Ignore the volume label in struct msdos_sb_info.

The volume label format reference from Pali Rohár <[email protected]> testing results in the previous mail.

v9:
1. Add necessary lock to protect write method.
2. Fix some code bug.

v8...v1:
write the patch

Chen Guanqiao (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                  |  47 ++++++++++++++
 fs/fat/fat.h                  |   6 ++
 fs/fat/file.c                 | 145 ++++++++++++++++++++++++++++++++++++++++++
 fs/fat/inode.c                |   6 ++
 include/uapi/linux/msdos_fs.h |   2 +
 5 files changed, 206 insertions(+)

--
2.14.3