[PATCH 13/13] FAT: show current nls config even if it's default.

From: OGAWA Hirofumi
Date: Mon Jan 17 2005 - 13:11:18 EST



Default config may be setted by distributer. By this change, certainly
the user can know current NLS using by FAT.

Signed-off-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
---

fs/fat/inode.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diff -puN fs/fat/inode.c~fat_show-default fs/fat/inode.c
--- linux-2.6.11-rc1/fs/fat/inode.c~fat_show-default 2005-01-13 03:53:45.000000000 +0900
+++ linux-2.6.11-rc1-hirofumi/fs/fat/inode.c 2005-01-13 03:53:45.000000000 +0900
@@ -690,11 +690,10 @@ static int fat_show_options(struct seq_f
seq_printf(m, ",gid=%u", opts->fs_gid);
seq_printf(m, ",fmask=%04o", opts->fs_fmask);
seq_printf(m, ",dmask=%04o", opts->fs_dmask);
- if (sbi->nls_disk && opts->codepage != fat_default_codepage)
+ if (sbi->nls_disk)
seq_printf(m, ",codepage=%s", sbi->nls_disk->charset);
if (isvfat) {
- if (sbi->nls_io &&
- strcmp(opts->iocharset, fat_default_iocharset))
+ if (sbi->nls_io)
seq_printf(m, ",iocharset=%s", sbi->nls_io->charset);

switch (opts->shortname) {
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/