[et-mgmt-tools] [PATCH] checking for busy disk

Saori Fukuta fukuta.saori at jp.fujitsu.com
Thu Jun 14 01:08:29 UTC 2007


Hi,

Would you give me a comment on this patch ?
If everything is OK, please apply it.

Thanks,
Saori Fukuta

On Wed, 06 Jun 2007 13:40:24 +0900 Saori Fukuta wrote:
> Hi,
> 
> The virt-install & virt-manager are checking if the physical device has
> been using by other domain. But they does not check, when the device is
> file or tap.
> 
> So I add to check it.
> 
> Signed-off-by: Saori Fukuta <fukuta.saori at jp.fujitsu.com>
> 
> Thanks,
> Saori Fukuta
> 
> 
> diff -r 797e92fd5e0d virtinst/Guest.py
> --- a/virtinst/Guest.py Thu May 31 14:20:33 2007 -0400
> +++ b/virtinst/Guest.py Wed Jun 06 11:34:33 2007 +0900
> @@ -163,6 +163,7 @@ class VirtualDisk:
>              try:
>                  try:
>                      count += ctx.xpathEval("count(/domain/devices/disk/source[@dev='%s'])" % self.path)
> +                    count += ctx.xpathEval("count(/domain/devices/disk/source[@file='%s'])" % self.path)
>                  except:
>                      continue
>              finally:
> 
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools





More information about the et-mgmt-tools mailing list