[Libvirt-cim] [PATCH 4 of 4] Added support for BusType prop on RASD and VSMS
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed Jun 10 23:25:23 UTC 2009
> diff -r 54abd2088466 -r f40d6547d9db src/Virt_VirtualSystemManagementService.c
> --- a/src/Virt_VirtualSystemManagementService.c Sat Jun 06 22:46:51 2009 -0300
> +++ b/src/Virt_VirtualSystemManagementService.c Sat Jun 06 22:46:51 2009 -0300
> @@ -599,6 +599,12 @@
> else
> return "Invalid value for EmulatedType";
>
> + if (cu_get_str_prop(inst, "BusType", &val) != CMPI_RC_OK)
> + val = "ide";
This is an optional value. If the user doesn't specify a value, libvirt
will attempt to determine the correct value. So instead of setting
"ide" as the default here, just set dev->dev.disk.bus_type to NULL to
indicate no value was set.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list