[PATCH] cloner: mark transient_shareBacking disk as shareable

Cole Robinson crobinso at redhat.com
Tue Jun 22 17:05:15 UTC 2021


On 6/17/21 4:40 AM, Liu Yiding wrote:
> 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")
>  
>  
> 

Thanks, pushed now

- Cole




More information about the virt-tools-list mailing list