[PATCH] cloner: mark transient_shareBacking disk as shareable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux