From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: [RFC] vfat: change the default from shortname=lower to shortname=mixed
Date: Fri, 26 Jun 2009 05:06:11 +0900 [thread overview]
Message-ID: <87ws70ulho.fsf@devron.myhome.or.jp> (raw)
Hi,
I was asked like the following sometimes,
Why is shortname=lower the default mount option for vfat filesystems?
Because, with "shortname=lower", copying one FAT filesystem tree to
another FAT filesystem tree using Liux results in semantically
different filesystems. (E.g.: Filenames which were once "all
uppercase" are now "all lowercase").
And from recently email
http://bugs.debian.org/476903
http://bugs.debian.org/497121
http://bugzilla.gnome.org/554031
https://bugs.launchpad.net/ubuntu/+bug/290362
My usual answer for it is, personally I agree that "winnt" or "mixed"
is proper. However, it is long-standing default behavior. Um...
But, now, situation would not be same with long past (didn't have
shortname= option).
Well, so, what do you think about changing the default of vfat from
"shortname=lower" to "shortname=mixed"? If default was changed, the
shortname (8.3) will not changed to lower case to show. And if possible,
it will try to preserve created shortname.
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
This causes Linux and Windows to display filenames the same.
Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
Documentation/filesystems/vfat.txt | 2 +-
fs/fat/inode.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/filesystems/vfat.txt b/Documentation/filesystems/vfat.txt
index b58b84b..eed520f 100644
--- a/Documentation/filesystems/vfat.txt
+++ b/Documentation/filesystems/vfat.txt
@@ -102,7 +102,7 @@ shortname=lower|win95|winnt|mixed
winnt: emulate the Windows NT rule for display/create.
mixed: emulate the Windows NT rule for display,
emulate the Windows 95 rule for create.
- Default setting is `lower'.
+ Default setting is `mixed'.
tz=UTC -- Interpret timestamps as UTC rather than local time.
This option disables the conversion of timestamps
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 8970d8c..f9af501 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -971,7 +971,7 @@ static int parse_options(char *options, int is_vfat, int silent, int *debug,
opts->codepage = fat_default_codepage;
opts->iocharset = fat_default_iocharset;
if (is_vfat) {
- opts->shortname = VFAT_SFN_DISPLAY_LOWER|VFAT_SFN_CREATE_WIN95;
+ opts->shortname = VFAT_SFN_DISPLAY_WINNT|VFAT_SFN_CREATE_WIN95;
opts->rodir = 0;
} else {
opts->shortname = 0;
--
1.6.3.1
next reply other threads:[~2009-06-25 20:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 20:06 OGAWA Hirofumi [this message]
2009-06-30 3:22 ` [RFC] vfat: change the default from shortname=lower to shortname=mixed Jamie Lokier
2009-06-30 20:48 ` 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=87ws70ulho.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.