public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] BeFS: load default nls if none is specified in mount options
@ 2004-08-29 19:21 Vegard Wærp
  0 siblings, 0 replies; only message in thread
From: Vegard Wærp @ 2004-08-29 19:21 UTC (permalink / raw)
  To: vegarwa

Makes the BeOS File Systen driver load the default nls
if none is specified in the "iocharset" mount option.


Signed-off-by: Vegard Wærp <vegarwa@online.no>


diff -urN a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
--- a/fs/befs/linuxvfs.c        2004-08-29 20:51:21.000000000 +0200
+++ b/fs/befs/linuxvfs.c        2004-08-29 20:59:45.583725680 +0200
@@ -857,10 +857,14 @@
                  befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
                  if (!befs_sb->nls) {
                          befs_warning(sb, "Cannot load nls %s"
-                                    "loding default nls",
+                                    " loading default nls",
                                       befs_sb->mount_opts.iocharset);
                          befs_sb->nls = load_nls_default();
                  }
+       /* load default nls if none is specified  in mount options */
+       } else {
+               befs_debug(sb, "Loading default nls");
+               befs_sb->nls = load_nls_default();
          }

          return 0;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-29 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-29 19:21 [PATCH] BeFS: load default nls if none is specified in mount options Vegard Wærp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox