Re: [PATCH] mount.cifs: add support for IPv6 addresses in brackets V2

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

 



On Mon, Apr 22, 2013 at 11:09 AM, Jeff Layton <jlayton@xxxxxxxxx> wrote:
>> Ping.
>> Any comments?
>>
>
> I guess I don't quite understand why we need this patch. For NFS it's
> pretty clear that we would since ':' has always served as the delimiter
> between the hostname and the pathname.
>
> For CIFS, not so much... IPv6 addresses typically don't have '/' or '\\'
> characters in them, so why do we need to wrap them in []?
>
> Note that this syntax doesn't follow what Windows does either, AFAIK.
> There, you need something like this since UNC paths can't contain ':'
> characters (and maybe also '%'):
>
>     http://www.samba.org/~idra/code/nss-ipv6literal/README.html
>
> ...we have no such restriction under Linux though.
>

I liked this approach for two reasons.  It handles a convention for
IPv6 formatting that is used that we don't support and allows us to
(in the future) parse an address from the path instead of having to
use --ip=, which I feel is a bit cumbersome.  Originally I was going
to just put in support for something like "mount.cifs
//IPv6Address/share /mnt/path" right away, but I wanted to get this
part in first.

--
Peace and Blessings,
-Scott.
--
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