[Libvirt-cim] [PATCH 3 of 7] SDC: adopt DevicePool interface change

Heidi Eckhart heidieck at linux.vnet.ibm.com
Wed Mar 5 09:49:10 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1204709617 -3600
# Node ID 6d0015c66c758a0d80fb6d70e310d2b020798ea6
# Parent  196480aa1c1b8358ae896782f831950c27ab232d
SDC: adopt DevicePool interface change

- adopted changes to DevicePool interface

Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 196480aa1c1b -r 6d0015c66c75 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c	Wed Mar 05 10:33:36 2008 +0100
+++ b/src/Virt_SettingsDefineCapabilities.c	Wed Mar 05 10:33:37 2008 +0100
@@ -529,13 +529,9 @@ static struct sdc_rasd_prop *disk_max(co
 
         /* Getting the relevant resource pool directly finds the free space 
            for us.  It is in the Capacity field. */
-        pool_inst = get_pool_by_id(_BROKER, conn, inst_id, NAMESPACE(ref));
-        if (pool_inst == NULL) {
-                cu_statusf(_BROKER, s, 
-                           CMPI_RC_ERR_FAILED,
-                           "Could not get pool instance");
-                goto out;
-        }
+        *s = get_pool_by_name(_BROKER, ref, inst_id, &pool_inst);
+        if (s->rc != CMPI_RC_OK)
+                goto out;
 
         prop_ret = cu_get_u64_prop(pool_inst, "Capacity", &free_64);
         if (prop_ret != CMPI_RC_OK) {




More information about the Libvirt-cim mailing list