# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1230156310 28800
# Node ID a7f77c32ddddb804e556fa19ceed0ebf625c9c2a
# Parent 3557859610b4eaf8a2bdcb28d7002121e3e776b1
Add EmulatedType to DiskRASDs.
This sets EmulatedType to 0. Should an additional template RASD be returned
for EmulatedType 1?
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 3557859610b4 -r a7f77c32dddd src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Wed Dec 10 12:42:02 2008 -0800
+++ b/src/Virt_SettingsDefineCapabilities.c Wed Dec 24 14:05:10 2008 -0800
@@ -617,6 +617,7 @@
const char *dev;
CMPIInstance *inst;
CMPIStatus s = {CMPI_RC_OK, NULL};
+ uint16_t emu_type = 0;
if (type == DOMAIN_LXC) {
addr = "/tmp";
@@ -652,6 +653,8 @@
CMSetProperty(inst, "VirtualDevice",
(CMPIValue *)dev, CMPI_chars);
+ CMSetProperty(inst, "EmulatedType",
+ (CMPIValue *)&emu_type, CMPI_uint16);
}
inst_list_add(list, inst);