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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

•For each callback object that is registered in the list of callback objects, call the callback object'sIVdsAdviseSink::OnNotify (Opnum 3) method by using a <strong>VDS</strong>_NOTIFICATION structure thathas the following attributes:•The objectType member is <strong>VDS</strong>_NTT_VOLUME.•The Volume member is a <strong>VDS</strong>_VOLUME_NOTIFICATION with the following attributes:•ulEvent is <strong>VDS</strong>_NF_VOLUME_MODIFY.•volumeId is the <strong>VDS</strong>_OBJECT_ID of this volume object.•If <strong>VDS</strong>_FSOF_COMPRESSION is specified and the file system being formatted supportscompression, compress the file system after formatting is complete.•Set the return code in the async object to an HRESULT indicating failure or success.•If the server tried to compress the file systems after formatting but failed, the return codeMUST be set to <strong>VDS</strong>_S_VOLUME_COMPRESS_FAILED (HRESULT of 0x00042443).•If the task completed successfully, set the percentage-completed value in the async object to100.•Set the signal state in the async object to TRUE.3.4.5.2.34.3 IVdsVolumeMF3::OfflineVolume (Opnum 5)The OfflineVolume method offlines a volume. An offline volume will fail data IO. The volume maybe opened for configuration.HRESULT OfflineVolume();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 this message, it MUST put the volume into the offline state.3.4.5.2.35 IVdsVolumeShrink Methods3.4.5.2.35.1 IVdsVolumeShrink::QueryMaxReclaimableBytes (Opnum 3)The QueryMaxReclaimableBytes method retrieves the maximum number of bytes that can bereclaimed from the current volume.HRESULT QueryMaxReclaimableBytes([out] ULONGLONG* pullMaxNumberOfReclaimableBytes);pullMaxNumberOfReclaimableBytes: A pointer to a variable that, if the operation issuccessfully completed, receives the maximum number of bytes that can be reclaimed from[<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, 2011262 / 360

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

Saved successfully!

Ooh no, something went wrong!