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

Re: [PATCH for discussion] doc: Define a standard URI syntax for NBD URIs.



On Sun, May 26, 2019 at 03:19:30PM +0300, Nir Soffer wrote:
> So it seems that we need to teach url parsers about removing / from
> nbd urls, otherwise all users will have do this after parsing the
> url.

When using libxml2 I removed the first / if present:

https://github.com/libguestfs/libnbd/blob/1bb1df7fd269a86a622b249707b32e1c9dae70b6/lib/connect.c#L189

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


Reply to: