Export (0) Print
Expand All

3.2.4.4 Application Requests Exposing a Shadow Copy Set

The caller provides the following:

  • ShadowCopySetId in GUID format

The client MUST look up ShadowCopySet in GlobalShadowCopySetTable where ShadowCopySet.ShadowCopySetId matches the caller-supplied ShadowCopySetId. If no entry is found, the client MUST return an implementation-defined error to the caller.

If ShadowCopySet.Status is not "Committed", the client MUST return an implementation-defined error to the caller.

The client MUST call the RPC ExposeShadowCopySet method, with ShadowCopySetId set to ShadowCopySet.ServerShadowCopySetId and TimeOutInMilliSeconds set to ExposeTimeout. If the server returns an error, the client MUST return the same error code to the caller. If the server returns ZERO, the client MUST set ShadowCopySet.Status to "Exposed".

Then, for each ShadowCopy in ShadowCopySet.ShadowCopyList, the client MUST call the GetShareMapping method with ShadowCopyId set to ShadowCopy.ServerShadowCopyId, ShadowCopySetId set to ShadowCopySet.ServerShadowCopySetId, and ShareName set to ShadowCopy.ShareName. If the server returns an error, the client MUST return the same error code to the caller. If the server returns ZERO, the client MUST do the following:

  • Set ShadowCopy.ExposedName to ShareMapping.ShadowCopyShareName.

  • Set ShadowCopy.CreationTimeStamp to ShareMapping.CreationTimestamp.

 
Show:
© 2014 Microsoft