# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1207776520 25200
# Node ID fae3c71425bf5d5adc01a6de1005c87b8726916c
# Parent d297967bad1fb290230fa9f42dee9a4e5e68f7bb
Set PoolID on all allocated RASD objects for later correlation in DefineSystem
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r d297967bad1f -r fae3c71425bf src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Wed Apr 09 14:28:19 2008 -0700
+++ b/src/Virt_SettingsDefineCapabilities.c Wed Apr 09 14:28:40 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;