[Libguestfs] [PATCH virt-v2v 2/2] v2v: Enable multi-conn

Richard W.M. Jones rjones at redhat.com
Tue Aug 3 12:10:02 UTC 2021


---
 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




More information about the Libguestfs mailing list