aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorHirofumi Ogawa <hirofumi@mail.parknet.co.jp>2004-08-02 00:01:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-02 00:01:50 -0700
commita5cd4546d40028705e16c84ce41402e16aed33a6 (patch)
treeddcb382bf8877d4253cb11b9d1a69acb9eeeb30b /Documentation
parent81fd00e2e58911325c794b6f98d683ecb7db2b04 (diff)
downloadhistory-a5cd4546d40028705e16c84ce41402e16aed33a6.tar.gz
[PATCH] FAT: kill nls default
Previously, fatfs was using NLS_DEFAULT if users didn't specify the codepage or iocharset option. This became cause of trouble (filename access). This patch removes the complicated default config in kernel. Instead of it, by default, fatfs uses builtin nls ("default"), also reports it and mounts as read-only. This default will limit the access more or less. Note: If peoples want to write on this default, it still can switch by remount. Therefore, basically users will need to specify mount options always. ("codepage" for msdos, and "codepage" and "iocharset" for vfat) However, it can be done simply by script or shell alias or something else in userland. Thanks to Andries Brouwer for your many advice. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/filesystems/vfat.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/Documentation/filesystems/vfat.txt b/Documentation/filesystems/vfat.txt
index 5ead20c6c7443f..b7554bd4770364 100644
--- a/Documentation/filesystems/vfat.txt
+++ b/Documentation/filesystems/vfat.txt
@@ -19,18 +19,23 @@ fmask=### -- The permission mask for files.
codepage=### -- Sets the codepage number for converting to shortname
characters on FAT filesystem.
- By default, FAT_DEFAULT_CODEPAGE setting is used.
+
+ NOTE: If this option was not specified, the file name
+ may not be read/written rightly, also filesystem is
+ mounted as read-only.
iocharset=name -- Character set to use for converting between the
encoding is used for user visible filename and 16 bit
Unicode characters. Long filenames are stored on disk
in Unicode format, but Unix for the most part doesn't
know how to deal with Unicode.
- By default, FAT_DEFAULT_IOCHARSET setting is used.
-
There is also an option of doing UTF8 translations
with the utf8 option.
+ NOTE: If this option was not specified, the file name
+ may not be read/written rightly, also filesystem is
+ mounted as read-only.
+
NOTE: "iocharset=utf8" is not recommended. If unsure,
you should consider the following option instead.