linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] small smbfs bugfix
@ 2007-01-26  6:51 Pavel Fedin
  2007-01-26 14:57 ` Dave Kleikamp
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Fedin @ 2007-01-26  6:51 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: viro

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

 Hello!

 This small patch fixes a problem with smbfs in 2.6.19.2 kernel.
Should also apply to other kernels.
 The problem is that smbfs doesn't understand "user" and "noexec"
options. This makes it impossible to include into /etc/fstab lines
like:

/pc2/myshare /mnt/smb/pc2/myshare smbfs user,noauto 0 0

 Smbmount expands "user,noauto" to "user,noauto,noexec" plus something
else, don't remember exactly what. In the result such an entry simply
can't be mounted because smbfs fails due to unknown options.
 This patch makes smbfs silently ignoring all unknown options instead of
producing an error.

 Also i would suggest to introduce this behavor to all other
filesystems. This would greatly improve autofs usability. Imagine a
situation: i have a ZIP drive and i'd like to be able to use ext2,
ext3 and vfat-formatted cartridges. Also i'm russian user so i use NLS feature
for names translation. In the fstab i would write:

/dev/hdd /mnt/zip ext2,ext3,vfat user,noauto,iocharset=koi8-r,codepage=866 0 0

 But in this case ext2 and ext3 wouldn't work at all since they would
fail due to unknown "iocharset" and "codepage" options.

-- 
Best regards,
 Pavel                          mailto:sonic_amiga@rambler.ru

[-- Attachment #2: smbfs-fix-2.6.19.2.diff --]
[-- Type: application/octet-stream, Size: 341 bytes --]

--- linux-2.6.19.2/fs/smbfs/inode.c.orig	2007-01-10 22:10:37.000000000 +0300
+++ linux-2.6.19.2/fs/smbfs/inode.c	2007-01-23 20:32:58.000000000 +0300
@@ -405,10 +405,6 @@
 		case 't':
 			mnt->ttl = value;
 			break;
-		default:
-			printk ("smbfs: Unrecognized mount option %s\n",
-				optopt);
-			return -1;
 		}
 	}
 	mnt->flags = flags;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-26 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26  6:51 [PATCH] small smbfs bugfix Pavel Fedin
2007-01-26 14:57 ` Dave Kleikamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).