fs: fat: add ioctl method to read voluem label in fat filesystem driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 of 2 patches 4 repliesIn review
1 of 2 patches is in this archive. The cover letter announces 2.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/2 | Add a new function to get root directory with ATTR_VOLUMEfs/ fs/ | +15 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] fs: fat: add ioctl method to read voluem label in fat filesystem driver
This patch add fat ioctl command FAT_IOCTL_GET_VOLUME_LABEL.
We can get the volume label with this command:
ioctl(fd, FAT_IOCTL_GET_VOLUME_LABEL, &volume_label);
FAT volume label (volume name) is exactly same stored in boot sector and root directory. And this patch read label only from the root directory. If label in root directory is missing then disk would be treated as without label. Label from boot sector would not be read.
The volume label format reference from Pali Rohár testing results
(https://www.spinics.net/lists/kernel/msg2645732.html) in the previous mail.
chenchacha (2):
Add FAT_IOCTL_GET_VOLUME_LABEL in fat_generic_ioctl() Add a new function to get root directory with ATTR_VOLUME
fs/fat/dir.c | 13 +++++++++++++ fs/fat/fat.h | 2 ++ fs/fat/file.c | 22 ++++++++++++++++++++++ include/uapi/linux/msdos_fs.h | 1 + 4 files changed, 38 insertions(+)
Signature · 1 line
2.19.0