[Samba] CIFS: Deprecating NFS mounting syntax in mount.cifs
Jeff Layton
jlayton at redhat.com
Tue Oct 23 11:36:27 MDT 2012
On Tue, 23 Oct 2012 19:22:32 +0200
steve <steve at steve-ss.com> wrote:
> On 10/23/2012 07:02 PM, Jeff Layton wrote:
> > On Tue, 23 Oct 2012 18:47:37 +0200
> > steve <steve at steve-ss.com> wrote:
> >
> >> On 10/23/2012 05:56 PM, Scott Lovenberg wrote:
> >> Currently, we have this map: * -fstype=cifs,rw,sec=krb5
> >> ://myserver/myshare/&
> > Does that really work? What purpose does the ':' serve there?
> Yes. They always put a ':' before the mount except for the default NFS.
> I took a look at the example /etc/auto.misc which comes (commented out)
> with openSUSE. They always put a ':'.
Ok, I see now. From autofs(5):
If the filesystem to be mounted begins with a / (such as local /dev
entries or smbfs shares) a : needs to be prefixed (e.g. :/dev/sda1).
...I guess it's necessary for the autofs parser. I assume that the ':'
doesn't get passed to the actual mount invocation though, so that
should continue to work just fine.
> > That
> > should probably be removed. I doubt we'd end up breaking that syntax,
> > but I can't be certain.
> >
> Just to say that this is a seemingly innocuous patch, but one which may
> lead to confusion.
Well, better confusion now than confusion when it breaks. cifs really
is just too "loose" about the syntax of things that it accepts, which
sounds great until you have to test all of the different variations...
--
Jeff Layton <jlayton at redhat.com>
More information about the samba
mailing list