On 7/31/20 5:22 PM, Eric Blake wrote:
From: "Richard W.M. Jones" <[email protected]>

See also:
https://www.redhat.com/archives/libguestfs/2020-July/msg00090.html
Message-Id: <[email protected]>

For now, this implementation is only for plugins; adding filter
support will come later (and probably requires further edits, for the
ability for any filter to open up an independent connection to the
plugin without being handed next_ops on entry).
---

@@ -652,6 +661,46 @@ Returning C<0> will allow the connection to continue.  If 
there is an
  error or you want to deny the connection, call C<nbdkit_error> with an
  error message and return C<-1>.

+=head2 C<.list_exports>
+
+ int list_exports (int readonly, int default_only,
+                   struct nbdkit_exports *exports);

I'm trying to figure out a situation where knowing whether we are running under 'nbdkit -r' (and thus all exports will be read-only) will affect the list advertised by the plugin. But then again, we _do_ pass the readonly flag to both .preconnect and .open, which are bookends around this call. That said, now's the time to decide whether to keep it or to simplify the interface by dropping it, before we bake in a stable release with the API.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to