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

Re: Standard NBD URL syntax (again)



On Mon, May 20, 2019 at 11:49:55AM +0200, Martin Kletzander wrote:
> On Mon, May 20, 2019 at 10:20:56AM +0100, Richard W.M. Jones wrote:
> > * QEMU         nbd:example.com:port
> >                nbd:unix:/socket
> >		 nbd:example.com:port:exportname=/export
> > - https://qemu.weilnetz.de/doc/qemu-doc.html#Device-URL-Syntax
> > - Not a real URL!
> >
> 
> QEMU also accepts real URLs, even for unix sockets:
> 
>  nbd+unix:///?socket=nbdkit.sock

That's a good point.  Pluses in the URI scheme are permitted, but
don't have a defined meaning, so they are part of the IANA
registration, eg subversion specifies both svn and svn+ssh as possible
schemes:

  https://www.iana.org/assignments/uri-schemes/prov/svn

It might be nice to allow

  nbd+ssh://ssh.example.com

but that leaves an open problem about how you specify the NBD port
number (not the SSH port number).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top


Reply to: