On Fri, Apr 23, 2021 at 10:34 AM Richard W.M. Jones <rjones(a)redhat.com> wrote:
On Fri, Apr 23, 2021 at 02:48:59AM +0300, Nir Soffer wrote:
> On Fri, Apr 23, 2021 at 12:09 AM Richard W.M. Jones <rjones(a)redhat.com>
wrote:
> >
> >
> > I'm pretty relaxed about you making changes to this example as you
> > wish, and althouh I didn't review them in detail it all looks good, so
ACK.
> >
> > I wonder though if the example is now too complicated(!) Perhaps it'd
> > be good to add a second, very basic example using libev?
>
> This is certainly too complicated, because this example is also an experiment,
> trying to implement the core of nbdcopy with libev.
>
> I can try to add a basic example, or maybe something like a tutorial
> that adds functionality one step at a time?
Could be a lot of work. How about a simple example that does
something like reads from the start to the end, dumping output to
stdout, ignoring extents?
Dumping to stdout means we cannot do parallel requests, which means there
is no reason to use the async interface.
Another direction I'm interested in is http/nbd proxy. Maybe something simple
that supports GET/PUT using the event loop to do parallel requests.
I think a real implementation will be something nginx nbd module, making nginx
a nbd reverse proxy.
Nir