Share via


ReturnToStoragePool method of the MSISCSITARGET_StorageConfigurationService class

Starts a job to delete an element that was previously created from a MSISCSITARGET_StoragePool instance and returns the freed space to the storage pool.

This method overrides the method inherited from the CIM_StorageConfigurationService class.

Syntax

uint32 ReturnToStoragePool(
  [out] CIM_ConcreteJob    REF Job,
  [in]  CIM_LogicalElement REF TheElement
);

Parameters

Job [out]

On return, contains a reference to the job, if a job is created and not completed.

TheElement [in]

Specifies the element to return to the MSISCSITARGET_StoragePool instance.

Return value

This method returns one of the following values.

Job Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

DMTF Reserved (7 4095)

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 32767)

Vendor Specific (32768 65535)

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_StorageConfigurationService

MSISCSITARGET_StoragePool