[Libvirt-cim] [PATCH 0 of 2] #4 - SDC: Fixed type of returned instance and error code

Heidi Eckhart heidieck at linux.vnet.ibm.com
Mon Dec 17 07:49:52 UTC 2007


Patch 1: The returned RASD instances have been of the general classname ResourceAllocationSettingData instead of the type specific one, e.g. ProcResourceAllocationSettingData
Patch 2: RASD to AllocationCapabilities should return NOT_SUPPORTED instead of OK

Diff to #1:
patch 1: fixed missing check for unknown resource type

Diff to #2:
- added helper function to RASD that translates the resource type into the classname (patch 1 of 3)
- updated patch 2 (#1 before) to make use of the helper function
- updated patch 3 (#2 before) to make use of RETURN_UNSUPPORTED macro

Diff to #3:
- patch 1 and 3 are already checked in and no longer part of this patch series
- added patch to harden free_rasd_prop_list() function to handle NULL pointer
- patch 2 (also patch 2 before): cleaned up error handling




More information about the Libvirt-cim mailing list