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.

lNumberOf<strong>Disk</strong>s: The number of elements in pInput<strong>Disk</strong>Array.ulStripeSize: The stripe size, in bytes, of the new volume.ulAlign: The number of bytes for the volume alignment. If zero is specified, the serverdetermines the alignment value based on the size of the disk on which the volume iscreated.ppAsync: A pointer to an IVdsAsync interface that, if the operation is successfully completed,receives the IVdsAsync interface to monitor and control this operation. Callers MUST releasethe interface when they are done with it. If the IVdsAsync::Wait (Opnum 4) method iscalled on the interface, the interfaces returned in the <strong>VDS</strong>_ASYNC_OUTPUT structure MUSTbe released as well. For more information on handling asynchronous tasks, see section3.4.5.1.9.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.IVdsPack2::CreateVolume2 has the same sequencing rules as IVdsPack::CreateVolume(Opnum 7), as specified in section 3.4.5.2.18.5.3.4.5.2.20 IVds<strong>Disk</strong> Methods3.4.5.2.20.1 IVds<strong>Disk</strong>::GetProperties (Opnum 3)The GetProperties method retrieves the properties of the disk that the object exposing thisinterface and method represents.HRESULT GetProperties([out] <strong>VDS</strong>_DISK_PROP* p<strong>Disk</strong>Properties);p<strong>Disk</strong>Properties: A pointer to a <strong>VDS</strong>_DISK_PROP structure that, if the operation issuccessfully 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_PROP structure that p<strong>Disk</strong>Properties references withthe properties of the disk; it MUST then return an HRESULT indicating failure or success. Forinformation on <strong>VDS</strong>_DISK_PROP, see section 2.2.2.9.1.1.3.4.5.2.20.2 IVds<strong>Disk</strong>::GetPack (Opnum 4)The GetPack method retrieves the disk pack that the disk belongs to.HRESULT GetPack([<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, 2011205 / 360

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

Saved successfully!

Ooh no, something went wrong!