Skip to contentSkip to conversation

BeFS: load default nls if none is specified in mount options

PATCH New Vegard Wærp 1 participant 1 message Aug 29, 2004 Befs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 BeFS: load default nls if none is specified in mount options

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

fs/befs/linuxvfs.c 2004-08-29 20:59:45.583725680 +0200 renamed from fs/befs/linuxvfs.c 2004-08-29 20:51:21.000000000 +0200 +5 -1
diff -urN a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
@@ -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;