GetSupportedSizes method of the CIM_StoragePool class
For pools that support discrete sizes for volume or pool creation, this method can be used to retrieve a list of supported sizes. Note that different pool implementations may support either or both the GetSupportedSizes and GetSupportedSizeRanges methods at different times, depending on Pool configuration. Also note that the advertised sizes may change after the call due to requests from other clients. If the pool currently only supports a range of sizes, then the return value will be set to 1.
Syntax
uint32 GetSupportedSizes(
[in] uint16 ElementType,
[in] CIM_StorageSetting REF Goal,
[out] uint64 Sizes[]
);
Parameters
-
ElementType [in]
-
The type of element for which supported sizes are reported for.
-
Storage Pool (2)
-
Storage Volume (3)
-
Logical Disk (4)
Goal [in]
The StorageSetting for which supported sizes should be reported for.
Sizes [out]
List of supported sizes for a Volume/Pool creation or modification.
Return value
-
Method completed OK (0)
-
Method not supported (1)
-
Use GetSupportedSizeRange instead (2)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\CIMv2\Storage\iScsiTarget |
MOF |
|
DLL |
|