* PROBLEM: noauto option prevents codepages from being processed properly by smbfs
@ 2007-11-03 18:33 Александр Дунаев
0 siblings, 0 replies; only message in thread
From: Александр Дунаев @ 2007-11-03 18:33 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]
Hi,
The below is my bugreport as suggested in REPORTING-BUGS:
1. noauto option prevents codepages from being processed properly by smbfs
2. I had the following line in my /etc/fstab :
//host/share /path smbfs
noauto,iocharset=koi8-r,codepage=cp866 0 0
Mounting such a share caused the following warning to be written to
the system log:
kernel: smbfs: Unrecognized mount option noauto
The warning is harmful, but the painful side effect was that other
options, e. g. iocharset and codepage, were ignored. I originally had
several mounts to remote samba shares with Russian filenames that
include Cyrillic characters, and they displayed fine until I added
noauto to options (the boot was slow when the remote machine was
down). After I've added noauto, the names have become unreadable
(charset problems).
The problem is probably that mount passes everything to
smbfs--according to mount(8), but noauto is not recognized by smbfs
and somewhy this option prevents all other optoins form being
processed properly.
3. modules smbfs
4. Linux version 2.6.21 (2.6.21-5) (root@phantom) (gcc version 4.1.3
20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Wed Jul 4 23:26:38
NOVST 2007
(Other items mentioned in REPORTING-BUGS are omitted as not necessary.)
The proposed patch is attached.
Please keep me in CC if possible.
Thanks,
--
Alexander Dunaev
[-- Attachment #2: smbfs-noauto-patch --]
[-- Type: application/octet-stream, Size: 820 bytes --]
--- linux-source-2.6.21.orig/include/linux/smb_mount.h 2007-04-26 10:08:32.000000000 +0700
+++ linux-source-2.6.21/include/linux/smb_mount.h 2007-11-03 23:36:24.000000000 +0600
@@ -42,6 +42,7 @@
#define SMB_MOUNT_GID 0x0040 /* Use user specified gid */
#define SMB_MOUNT_FMODE 0x0080 /* Use user specified file mode */
#define SMB_MOUNT_DMODE 0x0100 /* Use user specified dir mode */
+#define SMB_MOUNT_NOAUTO 0x0200 /* Don't mount automatically */
struct smb_mount_data_kernel {
int version;
--- linux-source-2.6.21.orig/fs/smbfs/inode.c 2007-04-26 10:08:32.000000000 +0700
+++ linux-source-2.6.21/fs/smbfs/inode.c 2007-11-03 23:37:01.000000000 +0600
@@ -349,6 +349,7 @@
{ "iocharset", 0, 'i' },
{ "codepage", 0, 'c' },
{ "ttl", 0, 't' },
+ { "noauto", SMB_MOUNT_NOAUTO, 1 },
{ NULL, 0, 0}
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-03 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-03 18:33 PROBLEM: noauto option prevents codepages from being processed properly by smbfs Александр Дунаев
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®