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

From: Vegard Wærp
Date: Sun Aug 29 2004 - 14:48:05 EST


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@xxxxxxxxx>


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;

-
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/