13.07.2015 Views

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HRESULT Mount();This method has no parameters.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.When the server receives the message, it MUST perform the following in sequence:•If the volume was dismounted permanently, bring the volume online.•Mount the volume.•Return an HRESULT indicating failure or success.3.4.5.2.32.8 IVdsVolumeMF::Dismount (Opnum 10)The Dismount method dismounts a mounted volume.HRESULT Dismount([in] long bForce,[in] long bPermanent);bForce: A Boolean that determines whether the current volume is dismounted unconditionally,even if the volume is in use.bPermanent: A Boolean that determines whether a volume MUST be dismounted permanentlyby taking the volume offline after dismounting it.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.When the server receives this message, it MUST validate the following:•Attempt to get exclusive access to the volume. If the server fails to get exclusive access to thevolume, and the bForce parameter is not set to a non-zero value, then the server MUST return<strong>VDS</strong>_E_DEVICE_IN_USE.•Verify that the volume is not currently temporarily dismounted.•If bPermanent is set, verify that the volume supports permanent dismount by checking thevolume flag <strong>VDS</strong>_VF_PERMANENT_DISMOUNT_SUPPORTED.•If bPermanent is set, verify that the volume does not have any access paths.•If bPermanent is not set, verify that the volume is not currently permanently dismounted.The server MUST then perform the following in sequence:•Dismount the volume.[<strong>MS</strong>-<strong>VDS</strong>] — v20110610<strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> (<strong>VDS</strong>) <strong>Protocol</strong> <strong>Specification</strong>Copyright © 2011 Microsoft Corporation.Release: Friday, June 10, 2011254 / 360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!