[virt-tools-list] [PATCH] devicedisk: Fix conflict checking when connecting a floppy media

Wei Huang wei at redhat.com
Mon Oct 27 20:46:36 UTC 2014



On 10/27/2014 03:43 PM, Lin Ma wrote:
> When connecting a floppy media, It always reports media conflict no
> matter it
> is in use or not, This patch fixes it.
> 
> Signed-off-by: Lin Ma
Hi Lin,

The signed-off-by shall contain your email address.

-Wei
> ---
> virtinst/devicedisk.py | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
> index 1d764d9..00b8000 100644
> --- a/virtinst/devicedisk.py
> +++ b/virtinst/devicedisk.py
> @@ -422,6 +422,9 @@ class VirtualDisk(VirtualDevice):
> if disk.path != path:
> continue
> 
> + if disk.type == "block" and disk.device == "floppy":
> + continue
> +
> if shareable and disk.shareable:
> continue
> if read_only and disk.read_only:
> -- 
> 1.8.4
> 
> 
> 
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
> 




More information about the virt-tools-list mailing list