[Libguestfs] [PATCH virt-v2v 2/2] v2v: Enable multi-conn
Richard W.M. Jones
rjones at redhat.com
Tue Aug 3 17:48:54 UTC 2021
On Tue, Aug 03, 2021 at 07:53:52PM +0300, Nir Soffer wrote:
> On Tue, Aug 3, 2021 at 3:10 PM Richard W.M. Jones <rjones at redhat.com> wrote:
> >
> > ---
> > v2v/rhv-upload-plugin.py | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
> > index 559ec5062..3fbb9e16a 100644
> > --- a/v2v/rhv-upload-plugin.py
> > +++ b/v2v/rhv-upload-plugin.py
> > @@ -96,6 +96,10 @@ def can_fua(h):
> > # imageio flush feature is is compatible with NBD_CMD_FLAG_FUA.
> > return options['can_flush']
> >
> > +def can_multi_conn(h):
> > + # Unfortunately we cannot control how many connections are made.
> > + return options['max_writers'] > 1
>
> Nice
It's one thing we really need to fix in the protocol.
Rich.
> > +
> > def get_size(h):
> > return size
> >
> > --
> > 2.32.0
>
> Nir
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
More information about the Libguestfs
mailing list