
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1248121657 25200 # Node ID d55e89f660825c2ad5df60151707ead225d07e85 # Parent 20fbdf23ea06819cb2d6193273497bee9b3eb8a2 Add StorageVolumeResourceAllocationSettingData class, new resource type The new class and resource type will be used to distinguish a template RASD used for defining a new storage volume (image file) from template RASDs that can be used to create a new virtual disk (assign an existing storage volume to a guest). Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 20fbdf23ea06 -r d55e89f66082 schema/ResourceAllocationSettingData.mof --- a/schema/ResourceAllocationSettingData.mof Mon Jul 20 13:27:37 2009 -0700 +++ b/schema/ResourceAllocationSettingData.mof Mon Jul 20 13:27:37 2009 -0700 @@ -290,3 +290,22 @@ string NodeName; }; + +[Description ("Xen storage volume settings"), + Provider("cmpi::Virt_SettingsDefineCapabilities") +] +class Xen_StorageVolumeResourceAllocationSettingData : Xen_ResourceAllocationSettingData +{ + string Path; + uint16 Type; +}; + +[Description ("KVM storage volume settings"), + Provider("cmpi::Virt_SettingsDefineCapabilities") +] +class KVM_StorageVolumeResourceAllocationSettingData : KVM_ResourceAllocationSettingData +{ + string Path; + uint16 Type; +}; + diff -r 20fbdf23ea06 -r d55e89f66082 src/svpc_types.h --- a/src/svpc_types.h Mon Jul 20 13:27:37 2009 -0700 +++ b/src/svpc_types.h Mon Jul 20 13:27:37 2009 -0700 @@ -33,6 +33,7 @@ #define CIM_RES_TYPE_GRAPHICS 24 #define CIM_RES_TYPE_INPUT 13 #define CIM_RES_TYPE_UNKNOWN 1000 +#define CIM_RES_TYPE_IMAGE 32768 #define CIM_RES_TYPE_COUNT 6 const static int cim_res_types[CIM_RES_TYPE_COUNT] =