aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wise <pabs3@bonedaddy.net>2009-08-01 08:30:31 -0400
committerOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2009-08-01 08:35:25 -0400
commit955234755ce4a2c33cfc558912aa8f2148cc1fc6 (patch)
treebf9e870da7ebcf5e9459e4109fc81cb21246441f
parent67638e4043083cdc6f10386a75fef87ba46eecb3 (diff)
vfat: change the default from shortname=lower to shortname=mixed
Because, with "shortname=lower", copying one FAT filesystem tree to another FAT filesystem tree using Linux results in semantically different filesystems. (E.g.: Filenames which were once "all uppercase" are now "all lowercase"). So, this changes the default of "shortname=lower" to "shortname=mixed". Signed-off-by: Paul Wise <pabs3@bonedaddy.net> [change fat_show_options()] Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r--Documentation/filesystems/vfat.txt2
-rw-r--r--fs/fat/inode.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/vfat.txt b/Documentation/filesystems/vfat.txt
index b58b84b50fa2..eed520fd0c8e 100644
--- a/Documentation/filesystems/vfat.txt
+++ b/Documentation/filesystems/vfat.txt
@@ -102,7 +102,7 @@ shortname=lower|win95|winnt|mixed
102 winnt: emulate the Windows NT rule for display/create. 102 winnt: emulate the Windows NT rule for display/create.
103 mixed: emulate the Windows NT rule for display, 103 mixed: emulate the Windows NT rule for display,
104 emulate the Windows 95 rule for create. 104 emulate the Windows 95 rule for create.
105 Default setting is `lower'. 105 Default setting is `mixed'.
106 106
107tz=UTC -- Interpret timestamps as UTC rather than local time. 107tz=UTC -- Interpret timestamps as UTC rather than local time.
108 This option disables the conversion of timestamps 108 This option disables the conversion of timestamps
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 8970d8c49bb0..63a5c1a4ee60 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -820,7 +820,7 @@ static int fat_show_options(struct seq_file *m, struct vfsmount *mnt)
820 seq_puts(m, ",shortname=mixed"); 820 seq_puts(m, ",shortname=mixed");
821 break; 821 break;
822 case VFAT_SFN_DISPLAY_LOWER | VFAT_SFN_CREATE_WIN95: 822 case VFAT_SFN_DISPLAY_LOWER | VFAT_SFN_CREATE_WIN95:
823 /* seq_puts(m, ",shortname=lower"); */ 823 seq_puts(m, ",shortname=lower");
824 break; 824 break;
825 default: 825 default:
826 seq_puts(m, ",shortname=unknown"); 826 seq_puts(m, ",shortname=unknown");
@@ -971,7 +971,7 @@ static int parse_options(char *options, int is_vfat, int silent, int *debug,
971 opts->codepage = fat_default_codepage; 971 opts->codepage = fat_default_codepage;
972 opts->iocharset = fat_default_iocharset; 972 opts->iocharset = fat_default_iocharset;
973 if (is_vfat) { 973 if (is_vfat) {
974 opts->shortname = VFAT_SFN_DISPLAY_LOWER|VFAT_SFN_CREATE_WIN95; 974 opts->shortname = VFAT_SFN_DISPLAY_WINNT|VFAT_SFN_CREATE_WIN95;
975 opts->rodir = 0; 975 opts->rodir = 0;
976 } else { 976 } else {
977 opts->shortname = 0; 977 opts->shortname = 0;