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

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

 



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

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:


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux