GetSupportedSizeRange method of the MSISCSITARGET_StoragePool class

Retrieves the supported size range for pools that support a range of sizes for volume or pool creation. The retrieved sizes might change after this method returns due to requests from other clients.

Different implementations might support either or both the GetSupportedSizes and GetSupportedSizeRange methods, depending on pool configuration.

Syntax

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

Parameters

ElementType [in]

Specifies the requested element type.

Storage Pool (2)

Storage Volume (3)

Logical Disk (4)

Goal [in]

Specifies the MSISCSITARGET_StorageSetting instance that describes the requested element type.

MinimumVolumeSize [out]

On return, indicates the minimum size for a requested element in bytes.

MaximumVolumeSize [out]

On return, indicates the maximum size for a requested element in bytes.

VolumeSizeDivisor [out]

On return, indicates the size in bytes of an incremental unit of element size. The size of a volume or pool must be an even multiple of this value.

Return value

This method returns one of the following values.

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

MSISCSITARGET_StoragePool