3.2.4.4.1 CLAIM_VOLUME

If this subrequest fails, and the VolumeState field of the volume's VolumeInformation is set to Owned, the VolumeState MUST be updated to NotOwned.

Otherwise, the client MUST update the volume's VolumeInformation as follows:

  • The VolumeSecret field MUST be set to be that of the secret field that was originally specified by the client in this request.

  • The RefreshTime field MUST be set to that of the ftLastRefresh field of the TRKSVR_SYNC_VOLUME structure returned by the server.

  •  The VolumeOwner field MUST be set to the current machine's MachineID.

  • The VolumeState field MUST be set to Owned.

  • The EnterNotOwnedTime field MUST be cleared.

Additionally, if this subrequest succeeds, the client MUST check the seq field of the TRKSVR_SYNC_VOLUME subrequest returned by the server. If it differs from the VolumeSequenceNumber in the VolumeInformation maintained by the client for this volume, then the client MUST synchronize its VolumeSequenceNumber with the server (as specified in section 3.2.4.2) for the TRK_S_OUT_OF_SYNC processing.