Re: [Libguestfs] [PATCH libnbd] ocaml: Implement sockaddr type

2022-11-02 Thread Richard W.M. Jones
On Wed, Nov 02, 2022 at 09:10:02PM +, Richard W.M. Jones wrote: > Convert Unix.sockaddr to struct sockaddr. OCaml provides a function > to do this ('get_sockaddr' - not namespaced!) This function was > present at least as far back as RHEL 7 (OCaml 4.05). The namespacing has actually been

[Libguestfs] [PATCH libnbd] ocaml: Implement sockaddr type

2022-11-02 Thread Richard W.M. Jones
Convert Unix.sockaddr to struct sockaddr. OCaml provides a function to do this ('get_sockaddr' - not namespaced!) This function was present at least as far back as RHEL 7 (OCaml 4.05). This also adds a simple test. --- generator/OCaml.ml | 8 ++-- ocaml/helpers.c

[Libguestfs] [PATCH libnbd] ocaml: Implement sockaddr type

2022-11-02 Thread Richard W.M. Jones
This is pushed already, commit 50500aade9. ___ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [nbdkit PATCH] sh: Add exit status triggers for nbdkit_{shutdown, disconnect}

2022-11-02 Thread Richard W.M. Jones
On Tue, Nov 01, 2022 at 02:56:09PM -0500, Eric Blake wrote: ... > +=item S<6> > + > +Triggers a call to the C function C with C > +set to false, which requests a soft disconnect of the current client > +(future client requests are rejected with C without calling > +into the plugin, but current

Re: [Libguestfs] [nbdkit PATCH] sh: Add exit status triggers for nbdkit_{shutdown, disconnect}

2022-11-02 Thread Richard W.M. Jones
On Wed, Nov 02, 2022 at 02:15:45PM +0100, Laszlo Ersek wrote: > On 11/01/22 20:56, Eric Blake wrote: > > Make it possible for the sh and eval plugins to disconnect a client or > > shut down the entire nbdkit server by use of special return values. > > Prior to this patch we had reserved 4-7 for

Re: [Libguestfs] [nbdkit PATCH] sh: Add exit status triggers for nbdkit_{shutdown, disconnect}

2022-11-02 Thread Laszlo Ersek
On 11/01/22 20:56, Eric Blake wrote: > Make it possible for the sh and eval plugins to disconnect a client or > shut down the entire nbdkit server by use of special return values. > Prior to this patch we had reserved 4-7 for future use; this defines > 4-6, and extends the set of reserved return