[Libguestfs] [PATCH virt-v2v 2/2] v2v: Enable multi-conn
Nir Soffer
nsoffer at redhat.com
Tue Aug 3 16:53:52 UTC 2021
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
> +
> def get_size(h):
> return size
>
> --
> 2.32.0
Nir
More information about the Libguestfs
mailing list