
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1248121657 25200 # Node ID 5fad1c4642449d39d40c7f8c90b8e71371b90d58 # Parent 67c4f2ab76c74753438aa94db0bc4867e869ff97 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 67c4f2ab76c7 -r 5fad1c464244 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 67c4f2ab76c7 -r 5fad1c464244 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] =