Re: [Libguestfs] [PATCH nbdkit] rust: Add implementation of after_fork() method

2023-04-21 Thread Richard W.M. Jones
On Fri, Apr 21, 2023 at 06:30:52AM -0700, alan somers wrote: > On Fri, Apr 21, 2023 at 2:32 AM Laszlo Ersek wrote: > > > > On 4/21/23 11:20, Richard W.M. Jones wrote: > > > See: https://github.com/libguestfs/nbdkit/issues/21 > > > > > > Tested by applying the following patch to the example plugin

Re: [Libguestfs] [PATCH nbdkit] rust: Add implementation of after_fork() method

2023-04-21 Thread alan somers
On Fri, Apr 21, 2023 at 2:32 AM Laszlo Ersek wrote: > > On 4/21/23 11:20, Richard W.M. Jones wrote: > > See: https://github.com/libguestfs/nbdkit/issues/21 > > > > Tested by applying the following patch to the example plugin and > > running it with verbose enabled: > > > > ---

Re: [Libguestfs] [PATCH nbdkit] rust: Add implementation of after_fork() method

2023-04-21 Thread Richard W.M. Jones
On Fri, Apr 21, 2023 at 10:20:35AM +0100, Richard W.M. Jones wrote: > impl Server for RamDisk { > +fn after_fork() -> Result<()> { > +// A place to start background threads. > +eprintln!("forked"); Alan, this reminds me that there is no binding for nbdkit_debug. I think

Re: [Libguestfs] [PATCH nbdkit] rust: Add implementation of after_fork() method

2023-04-21 Thread Richard W.M. Jones
On Fri, Apr 21, 2023 at 11:32:31AM +0200, Laszlo Ersek wrote: > On 4/21/23 11:20, Richard W.M. Jones wrote: > > See: https://github.com/libguestfs/nbdkit/issues/21 > > > > Tested by applying the following patch to the example plugin and > > running it with verbose enabled: > > > > ---

Re: [Libguestfs] [PATCH nbdkit] rust: Add implementation of after_fork() method

2023-04-21 Thread Laszlo Ersek
On 4/21/23 11:20, Richard W.M. Jones wrote: > See: https://github.com/libguestfs/nbdkit/issues/21 > > Tested by applying the following patch to the example plugin and > running it with verbose enabled: > > --- a/plugins/rust/examples/ramdisk.rs > +++ b/plugins/rust/examples/ramdisk.rs > @@ -43,6