[Libvirt-cim] [PATCH] (#2) Add Enumeration support to RASD

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Feb 18 23:25:14 UTC 2008


Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1203373962 28800
> # Node ID c118dc77598088e3bd866df48787e5999aeb9d10
> # Parent  7b5611c03994d1568ba69560f5afad284df06bd0
> (#2) Add Enumeration support to RASD
> 
> Supports enumerating a specific RASD type, as well as the parent classes
> KVM_RASD, Xen_RASD, as well as CIM_RASD.
> 
> Changes:
>  - Remove printf() in place of a CU_DEBUG() (before Kaitlin got a chance to
>    complain, I'll have you know)
> 

> +
> +        if (rasd_type_from_classname(CLASSNAME(ref), &type) == CMPI_RC_OK) {
> +                types[0] = type;
> +                types[1] = 0;
> +        }
> +
> +        for (i = 0; i < count; i++) {
> +                for (j = 0; types[j] != 0; j++) {
> +                        CU_DEBUG(("Doing RASD type %i for %s",

I had troubles compiling with this patch applied - you have an extra 
open paren here.

Also, I was unable to query the CIM_ superclass:

wbemcli ein http://localhost/root/virt:CIM_ResourceAllocationSettingData

Since the classname is not specify, we're unable to get a domain list 
from the connection.


-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list