Partager via


GetSupportedSizeRange method of the CIM_StoragePool class

For pools that support a range of sizes for volume or pool creation, this method can be used to retrieve the supported range. 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 discrete sizes, then the return value will be set to 1.

Syntax

uint32 GetSupportedSizeRange(
  [in]  uint16                 ElementType,
  [in]  CIM_StorageSetting REF Goal,
  [out] uint64                 MinimumVolumeSize,
  [out] uint64                 MaximumVolumeSize,
  [out] uint64                 VolumeSizeDivisor
);

Parameters

ElementType [in]

The type of element for which supported size ranges are reported for.

Storage Pool (2)

Storage Volume (3)

Logical Disk (4)

Goal [in]

The StorageSetting for which supported size ranges should be reported for.

MinimumVolumeSize [out]

The minimum size for a volume/pool in bytes.

MaximumVolumeSize [out]

The maximum size for a volume/pool in bytes.

VolumeSizeDivisor [out]

A volume/pool size must be a multiple of this value which is specified in bytes.

Return value

Method completed OK (0)

Method not supported (1)

Use GetSupportedSizes instead (2)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SMiSCSITargetProv.dll

See also

CIM_StoragePool