Re: CIFS: Deprecating NFS mounting syntax in mount.cifs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Oct 2012 19:22:32 +0200
steve <steve@xxxxxxxxxxxx> wrote:

> On 10/23/2012 07:02 PM, Jeff Layton wrote:
> > On Tue, 23 Oct 2012 18:47:37 +0200
> > steve <steve@xxxxxxxxxxxx> 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@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux