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

Saori Fukuta fukuta.saori at jp.fujitsu.com
Wed Jun 6 04:40:24 UTC 2007


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:




More information about the et-mgmt-tools mailing list