GetSupportedSizes method of the MSISCSITARGET_StoragePool class

Retrieves a list of supported sizes for pools that support discrete sizes for volume or pool creation. The retrieved sizes may change after this method returns due to requests from other clients.

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

Syntax

uint32 GetSupportedSizes(
  [in]  uint16                 ElementType,
  [in]  CIM_StorageSetting REF Goal,
  [out] uint64                 Sizes[]
);

Parameters

ElementType [in]

Specifies the requested element type.

Storage Pool (2)

Storage Volume (3)

Logical Disk (4)

Goal [in]

Specifies the MSISCSITARGET_StorageSetting instance describing the requested element type.

Sizes [out]

On return contains a list of supported sizes in bytes.

Return value

This method returns one of the following values.

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
SmIscsiTarget.mof
DLL
SMiSCSITargetProv.dll

See also

MSISCSITARGET_StoragePool