From: ChenGuanqiao <chen.chenchacha@foxmail.com>
To: hirofumi@mail.parknet.co.jp
Cc: linux-kernel@vger.kernel.org, ChenGuanqiao <chen.chenchacha@foxmail.com>
Subject: [PATCH v6 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label
Date: Tue, 2 Jan 2018 14:42:26 +0800 [thread overview]
Message-ID: <20180102064229.25202-1-chen.chenchacha@foxmail.com> (raw)
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.
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 | 62 +++++++++++++++++
fs/fat/fat.h | 6 ++
fs/fat/file.c | 150 ++++++++++++++++++++++++++++++++++++++++++
fs/fat/inode.c | 15 ++++-
include/uapi/linux/msdos_fs.h | 2 +
5 files changed, 232 insertions(+), 3 deletions(-)
--
2.11.0
next reply other threads:[~2018-01-02 6:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 6:42 ChenGuanqiao [this message]
2018-01-02 6:42 ` [PATCH v6 1/3] fs: fat: Add fat filesystem partition volume label in local structure ChenGuanqiao
2018-01-02 6:42 ` [PATCH v6 2/3] fs: fat: Add volume label entry method function ChenGuanqiao
2018-01-09 7:51 ` OGAWA Hirofumi
2018-01-02 6:42 ` [PATCH v6 3/3] fs: fat: add ioctl method in fat filesystem driver ChenGuanqiao
2018-01-09 8:10 ` OGAWA Hirofumi
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=20180102064229.25202-1-chen.chenchacha@foxmail.com \
--to=chen.chenchacha@foxmail.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
/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).