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

Heidi Eckhart heidieck at linux.vnet.ibm.com
Thu Mar 6 12:38:13 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1204806483 -3600
# Node ID 7bb967966c0c44c4ab7b89a4f3bf7c82301a4711
# Parent  cb86b8615183d98199f02c45df6aa07cfedf5bb2
VSMS: adopt RASD interface change
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r cb86b8615183 -r 7bb967966c0c src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c	Thu Mar 06 13:28:00 2008 +0100
+++ b/src/Virt_VirtualSystemManagementService.c	Thu Mar 06 13:28:03 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