Richard W.M. Jones
2021-Aug-03 12:10 UTC
[Libguestfs] [PATCH virt-v2v 2/2] v2v: Enable multi-conn
--- 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 + def get_size(h): return size -- 2.32.0
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'] > 1Nice> + > def get_size(h): > return size > > -- > 2.32.0Nir