Re: [Libguestfs] [PATCH nbdkit v2] PROPOSED: server: Implement list_exports.

Richard W.M. Jones
Fri, 31 Jul 2020 07:24:32 -0000

On Thu, Jul 30, 2020 at 10:50:13AM +0100, Richard W.M. Jones
wrote:
> Not sure this actually solves the list_exports problem however since
> presumably list_exports still happens before open so it woudn't appear
> in the next_ops struct?

Actually I don't think this matters.  Plugins ought to be able to
handle .list_exports at any point.  They have no "context" to know if
it happened before .open, because there is no handle.  (And if it was
a problem, we could just say that plugins must be able to handle
.list_exports at any time).

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch