Partager via


ConvertReplicationTypeToSyncType method of the MSISCSITARGET_ReplicationServiceCapabilities class

Converts a SupportedReplicationTypes value to the corresponding SyncType, Mode, and LocalOrRemote parameter values. This method is the inverse of the ConvertSyncTypeToReplicationType method.

This method is inherited from the CIM_ReplicationServiceCapabilities class.

Syntax

uint32 ConvertReplicationTypeToSyncType(
  [in]  uint16 ReplicationType,
  [out] uint16 SyncType,
  [out] uint16 Mode,
  [out] uint16 LocalOrRemote
);

Parameters

ReplicationType [in]

Specifies a replication type value to convert.

The MSISCSITARGET_ReplicationServiceCapabilities.SupportedReplicationTypes property values are.

Synchronous Mirror Local (2)

Asynchronous Mirror Local (3)

Synchronous Mirror Remote (4)

Asynchronous Mirror Remote (5)

Synchronous Snapshot Local (6)

Asynchronous Snapshot Local (7)

Synchronous Snapshot Remote (8)

Asynchronous Snapshot Remote (9)

Synchronous Clone Local (10)

Asynchronous Clone Local (11)

Synchronous Clone Remote (12)

Asynchronous Clone Remote (13)

DMTF Reserved

14 0x7FFF

Vendor Specific

0x8000 = *value*

SyncType [out]

On return, describes the type of copy.

Mirror (6)

Creates and maintains a copy of the source.

Snapshot (7)

Creates a point-in-time (PIT), virtual copy of the source.

Clone (8)

Creates an unsynchronized copy of the source.

DMTF Reserved

Reserved.

Vendor Specific

Reserved.

Mode [out]

On return, describes whether the target elements are updated synchronously or asynchronously.

The possible values are.

Synchronous (2)

Asynchronous (3)

DMTF Reserved

4 0x7FFF

Vendor Specific

0x8000 = *value*

LocalOrRemote [out]

On return, indicates local or remote replication.

Local only (2)

Source and target elements are contained in the same system.

Remote only (3)

Source and target elements are contained in two different systems.

DMTF Reserved

Reserved.

Vendor Specific

Reserved.

Return value

This method returns one of the following values.

Success (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

DMTF Reserved (7 0x7FFF)

Vendor Specific (0x8000 = value )

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_ReplicationServiceCapabilities

ConvertSyncTypeToReplicationType