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.

ERROR_SUCCESS (0x00000000)When the server receives this message, it MUST set the SAN mode of the disk to offline or online, asspecified by bEnable, and then return an HRESULT indicating failure or success. 3.4.5.2.22 IVds<strong>Disk</strong>3 Methods3.4.5.2.22.1 IVds<strong>Disk</strong>3::GetProperties2 (Opnum 3)The GetProperties2 method retrieves the properties of the disk that the object exposing thisinterface and method represents.HRESULT GetProperties2([out] <strong>VDS</strong>_DISK_PROP2* p<strong>Disk</strong>Properties);p<strong>Disk</strong>Properties: A pointer to a <strong>VDS</strong>_DISK_PROP2 (section 2.2.2.10.2.1) structure that, ifthe operation is successfully completed, receives the properties of the disk.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 parameter:•Verify that p<strong>Disk</strong>Properties is not NULL.The server MUST populate the <strong>VDS</strong>_DISK_PROP2 structure that p<strong>Disk</strong>Properties references withthe properties of the disk and return an HRESULT that indicates failure or success.3.4.5.2.22.2 IVds<strong>Disk</strong>3::QueryFreeExtents (Opnum 6)The QueryFreeExtents method enumerates a disk's free extents.Returns all free extents on thedisk and aligns them to the alignment value supplied in the ulAlign parameter. If there is noalignment value supplied, QueryFreeExtents aligns the free extents based on the defaultalignment values.HRESULT QueryFreeExtents([in] ULONG ulAlign,[out] [size_is(,*plNumberOfFreeExtents)]<strong>VDS</strong>_DISK_FREE_EXTENT** ppFreeExtentArray,[out] LONG* plNumberOfFreeExtents);ulAlign: The alignment value. If ulAlign is 0, the default alignment value is used.ppFreeExtentArray: Pointer to an array of <strong>VDS</strong>_DISK_FREE_EXTENT structures that, if theoperation is successful, receives the array of disk extent structures.plNumberOfFreeExtents: Pointer to a variable that, if the operation is successfully completed,receives the total number of elements in ppFreeExtentArray.[<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, 2011210 / 360

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

Saved successfully!

Ooh no, something went wrong!