[Libvirt-cim] [PATCH] [TEST] Modifying rasd.py to include strorage vol info when libvirt>= 0.4.1

Deepti B. Kalakeri deeptik at linux.vnet.ibm.com
Tue Aug 11 07:44:22 UTC 2009


# HG changeset patch
# User Deepti B. Kalakeri<deeptik at linux.vnet.ibm.com>
# Date 1249976643 25200
# Node ID e1a54be4fedf4527eebbb7b225c9ea9a75e815c8
# Parent  12fd8bac01f25251dbfb64dd5e764f533108964b
[TEST] Modifying rasd.py to include strorage vol info when libvirt>= 0.4.1

Tested with KVM on F10 and Xen on RHEL5.3 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>

diff -r 12fd8bac01f2 -r e1a54be4fedf suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Mon Aug 10 04:39:27 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Tue Aug 11 00:44:03 2009 -0700
@@ -360,7 +360,8 @@
             volumes = enum_volumes(virt, ip, id[1])
             exp_len = (volumes * exp_base_num) + exp_cdrom
 
-    if rev >= libvirt_rasd_storagepool_changes and virt != 'LXC':
+    if rev >= libvirt_rasd_storagepool_changes and libvirt_ver >= '0.4.1' \
+       and virt != 'LXC':
         exp_len += exp_storagevol_rasd
 
     return exp_len




More information about the Libvirt-cim mailing list