I was tired that my floppy/Jaz did not support file names in native
encoding when using auto file system type for supermount. There does not
seem to be any elegant way to pass extra options to supermount and ext2
is the only one file system tried for auto that does not support these
options so this patch simply makes ext2 ignore iocharset/codepage
options.
IMHO these options should at least be accepted by every file system, but
...
-andrej
--- linux-2.4.18-18mdk/fs/ext2/super.c.iocharset Mon Feb 25 22:38:08 2002
+++ linux-2.4.18-18mdk/fs/ext2/super.c Sat Jul 6 13:39:28 2002
@@ -274,6 +274,12 @@
|| !strcmp (this_char, "quota")
|| !strcmp (this_char, "usrquota"))
/* Don't do anything ;-) */ ;
+#if defined(CONFIG_SUPERMOUNT) || defined(CONFIG_SUPERMOUNT_MODULE)
+ /* Silently ignore NLS options */
+ else if (!strcmp (this_char, "iocharset")
+ || !strcmp (this_char, "codepage"))
+ /* Don't do anything ;-) */ ;
+#endif
else {
printk ("EXT2-fs: Unrecognized mount option %s\n", this_char);
return 0;