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.

The server MUST update the percentage completed value periodically during the precedingsequence. How often the percentage completed is updated, and at what point in the sequence, isimplementation-specific.3.4.5.2.18.6 IVdsPack::Add<strong>Disk</strong> (Opnum 8)This method initializes a disk that has no partitioning format defined, and then adds the disk to thedisk pack. Add<strong>Disk</strong> cannot redefine the partitioning format on a disk.HRESULT Add<strong>Disk</strong>([in] <strong>VDS</strong>_OBJECT_ID <strong>Disk</strong>Id,[in] <strong>VDS</strong>_PARTITION_STYLE PartitionStyle,[in] long bAsHotSpare);<strong>Disk</strong>Id: The <strong>VDS</strong> object ID of the disk object.PartitionStyle: A value from the <strong>VDS</strong>_PARTITION_STYLE enumeration that indicates thepartition format.bAsHotSpare: The <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote <strong>Protocol</strong> does not support this parameter; callersMUST set it to FALSE.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 parameters:•Verify that <strong>Disk</strong>Id belongs to a disk object in the list of storage management objectscorresponding to an unallocated disk.•Verify that PartitionStyle is a valid partitioning format.The server MUST add the disk having a <strong>VDS</strong>_OBJECT_ID specified by <strong>Disk</strong>Id to this pack, initializethe partitioning format of the disk based on the value of the PartitionStyle parameter, set the diskobject's pack pointer to this pack object, and return an HRESULT indicating failure or success.3.4.5.2.18.7 IVdsPack::Migrate<strong>Disk</strong>s (Opnum 9)The Migrate<strong>Disk</strong>s method migrates a set of disks from one pack to another pack.HRESULT Migrate<strong>Disk</strong>s([in, size_is(lNumberOf<strong>Disk</strong>s)] <strong>VDS</strong>_OBJECT_ID* p<strong>Disk</strong>Array,[in] long lNumberOf<strong>Disk</strong>s,[in] <strong>VDS</strong>_OBJECT_ID TargetPack,[in] long bForce,[in] long bQueryOnly,[out, size_is(lNumberOf<strong>Disk</strong>s)] HRESULT* pResults,[out] long* pbRebootNeeded);p<strong>Disk</strong>Array: A pointer to an array of <strong>VDS</strong> object IDs--one for each disk object that correspondsto the disks to migrate.[<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, 2011200 / 360

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

Saved successfully!

Ooh no, something went wrong!