[PATCH] cloner: mark transient_shareBacking disk as shareable

Liu Yiding liuyd.fnst at fujitsu.com
Thu Jun 17 08:40:07 UTC 2021


libvirt 7.4.0 added support for sharing base image of <transient/> disks,
multiple VMs can share the same image
https://libvirt.org/news.html#v7-4-0-2021-06-01

Signed-off-by: Liu Yiding <liuyd.fnst at fujitsu.com>
---
 virtinst/cloner.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/cloner.py b/virtinst/cloner.py
index 622a2921..1fdffa2a 100644
--- a/virtinst/cloner.py
+++ b/virtinst/cloner.py
@@ -195,7 +195,7 @@ def _get_shareable_msg(disk):
         return _("No storage to clone.")
     if disk.read_only:
         return _("Read Only")
-    if disk.shareable:
+    if disk.shareable or disk.transient_shareBacking:
         return _("Marked as shareable")
 
 
-- 
2.26.2






More information about the virt-tools-list mailing list