Re: Standard NBD URL syntax (again)
On Wed, May 22, 2019 at 01:04:06PM +0200, Wouter Verhelst wrote:
> On Wed, May 22, 2019 at 10:55:45AM +0100, Richard W.M. Jones wrote:
> > So last night I had an important thought about this:
> >
> > * What existing export names are people using in real life?
>
> Good point.
>
> > nbdkit doesn't use export names for anything - you can pass
> > anything you like.
> >
> > qemu-nbd has an odd system where the export name must match what was
> > specified on the command line, but AFAIK it doesn't care about it
> > otherwise.
> >
> > qemu's internal NBD server may permit multiple export names, but I'm
> > not totally sure about that. What do they look like? Arbitrary
> > strings? Absolute paths? Relative paths?
> >
> > nbd-server supports multiple export names, and it does appear to want
> > absolute paths.
>
> You're confusing two things here.
>
> In nbd-server, the section name is used as the export name; and the
> configuration line that starts with 'export=' is used as the path of the
> file or device that is exported, but not as the export name.
>
> i.e., in a configuration like this:
>
> [mydevice]
> export=/home/wouter/device
>
> the exportname is "mydevice", not "/home/wouter/device".
Ah ha, I did indeed confuse that, thanks for clarifying it.
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: