[Libvirt-cim] [PATCH 2 of 5] VSMS: adopt RASD interface change

Heidi Eckhart heidieck at linux.vnet.ibm.com
Mon Mar 10 12:03:46 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1205150455 -3600
# Node ID 77c124f394ea3f03df79edb3e7934d5dbf119833
# Parent  e32460a4d31d11a8e77d2038d6c49a388f3f4ca3
VSMS: adopt RASD interface change
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r e32460a4d31d -r 77c124f394ea src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c	Mon Mar 10 12:59:34 2008 +0100
+++ b/src/Virt_VirtualSystemManagementService.c	Mon Mar 10 13:00:55 2008 +0100
@@ -220,7 +220,7 @@ static int rasd_to_vdev(CMPIInstance *in
         if (op == NULL)
                 goto err;
 
-        if (rasd_type_from_classname(CLASSNAME(op), &type) != CMPI_RC_OK)
+        if (res_type_from_rasd_classname(CLASSNAME(op), &type) != CMPI_RC_OK)
                 goto err;
 
         dev->type = (int)type;
@@ -303,7 +303,7 @@ static int classify_resources(CMPIArray 
                 if (op == NULL)
                         return 0;
 
-                if (rasd_type_from_classname(CLASSNAME(op), &type) != 
+                if (res_type_from_rasd_classname(CLASSNAME(op), &type) != 
                     CMPI_RC_OK)
                         return 0;
 
@@ -882,7 +882,7 @@ static CMPIStatus _update_resources_for(
                 goto out;
         }
 
-        if (rasd_type_from_classname(CLASSNAME(op), &type) != CMPI_RC_OK) {
+        if (res_type_from_rasd_classname(CLASSNAME(op), &type) != CMPI_RC_OK) {
                 cu_statusf(_BROKER, &s,
                            CMPI_RC_ERR_FAILED,
                            "Unable to determine RASD type");
@@ -1036,7 +1036,7 @@ static CMPIStatus rasd_refs_to_insts(con
                         continue;
                 }
 
-                if (rasd_type_from_classname(CLASSNAME(ref), &type) !=
+                if (res_type_from_rasd_classname(CLASSNAME(ref), &type) !=
                     CMPI_RC_OK) {
                         CU_DEBUG("Unable to get type of `%s'",
                                  REF2STR(ref));




More information about the Libvirt-cim mailing list