
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1208191321 25200 # Node ID 041175667e48789b50efe550a3d7d41f42110caa # Parent abf9b4881cc061cca318fe39c3c849f01316cdc8 Set PoolID on all allocated RASD objects for later correlation in DefineSystem No changes, but this can be a standalone patch, so I'm submitting it outside my other set. Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r abf9b4881cc0 -r 041175667e48 src/Virt_SettingsDefineCapabilities.c --- a/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 09:15:30 2008 -0700 +++ b/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 09:42:01 2008 -0700 @@ -829,6 +829,7 @@ static CMPIStatus alloc_cap_to_rasd(cons CMPIStatus s = {CMPI_RC_OK}; uint16_t type; const char *id = NULL; + int i; if (!match_hypervisor_prefix(ref, info)) return s; @@ -850,6 +851,10 @@ static CMPIStatus alloc_cap_to_rasd(cons } s = sdc_rasds_for_type(ref, list, type); + + for (i = 0; i < list->cur; i++) + CMSetProperty(list->list[i], "PoolID", + (CMPIValue *)id, CMPI_chars); out: return s;