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.

3.2.1.4 <strong>Disk</strong>sIVdsAdvanced<strong>Disk</strong>::GetPartitionProperties: Prior to invoking GetPartitionProperties, theclient invokes IVds<strong>Disk</strong>::QueryExtents or IVdsVolumePlex::QueryExtents to retrieve the offsetparameter. The client passes this returned value as the ullOffset input parameter to theGetPartitionProperties method. IVds<strong>Disk</strong>::QueryExtents or IVdsVolumePlex::QueryExtentsreturns this value as the <strong>VDS</strong>_DISK_EXTENT::ullOffset output parameter.IVdsAdvanced<strong>Disk</strong>::CreatePartition: Prior to invoking CreatePartition, the client invokesIVds<strong>Disk</strong>::QueryExtents , IVds<strong>Disk</strong>3::QueryFreeExtents, orIVdsVolumePlex::QueryExtents to retrieve the free disk extents. Using the list of free diskextents, the client can calculate an offset and size for the new partition. The client passes thesecalculated values as the ullOffset and ullSize input parameters to the CreatePartition method.IVds<strong>Disk</strong>::QueryExtents returns a list of <strong>VDS</strong>_DISK_EXTENT structures as an output parameter.These structures contain the offset and size of the free extent as <strong>VDS</strong>_DISK_EXTENT::ullOffsetand <strong>VDS</strong>_DISK_EXTENT::ullSize. IVds<strong>Disk</strong>3::QueryFreeExtents, andIVdsVolumePlex::QueryExtents return a list of <strong>VDS</strong>_DISK_FREE_EXTENT structures as anoutput parameter. These structures contain the offset and size of the free extent as<strong>VDS</strong>_DISK_FREE_EXTENT::ullOffset and <strong>VDS</strong>_DISK_FREE_EXTENT::ullSize.Prior to invoking CreatePartition, the client invokesIVdsAdvanced<strong>Disk</strong>::GetPartitionProperties to retrieve the partition type (partition style) for thedisk. The client passes this value as the CREATE_PARTITION_PARAMETERS::style inputparameter to the CreatePartition method. IVdsAdvanced<strong>Disk</strong>::GetPartitionProperties returnsthis value as the <strong>VDS</strong>_PARTITION_PROP::PartitionStyle structure member.Prior to invoking CreatePartition, the client invokes IVdsPack::Add<strong>Disk</strong> to set the partitioningformat for the disk if the disk is not initialized.IVdsAdvanced<strong>Disk</strong>::DeletePartition: Prior to invoking DeletePartition, the client invokesIVdsAdvanced<strong>Disk</strong>::GetPartitionProperties, IVds<strong>Disk</strong>::QueryExtents, orIVdsVolumePlex::QueryExtents to retrieve the offset parameter. The client passes this returnedvalue as the ullOffset input parameter to the DeletePartition method. If an invalid offset is passedto this method, it will fail. IVds<strong>Disk</strong>::QueryExtents or IVdsVolumePlex::QueryExtents returnsthis value as the <strong>VDS</strong>_DISK_EXTENT::ullOffset output parameter.IVdsAdvanced<strong>Disk</strong>::GetPartitionProperties returns this value as the<strong>VDS</strong>_PARTITION_PROP::ullOffset output parameter.IVdsAdvanced<strong>Disk</strong>::ChangeAttributes: ChangeAttributes has the same call sequencedescription as DeletePartition.IVdsAdvanced<strong>Disk</strong>::AssignDriveLetter: AssignDriveLetter has the same call sequencedescription as DeletePartition.IVdsAdvanced<strong>Disk</strong>::GetDriveLetter: GetDriveLetter has the same call sequence description asDeletePartition.IVdsAdvanced<strong>Disk</strong>::FormatPartition: For call sequencing related to the ullOffset inputparameter, see the description for IVdsAdvanced<strong>Disk</strong>::DeletePartition. For call sequencing, seesections 3.2.1.1.2, 3.4.1.4, 3.4.1.5, and 4.5.IVdsAdvanced<strong>Disk</strong>2::ChangePartitionType: For call sequencing related to the ullOffset inputparameter, see the description for IVdsAdvanced<strong>Disk</strong>::FormatPartition.Prior to invoking ChangePartitionType, the client invokesIVdsAdvanced<strong>Disk</strong>::GetPartitionProperties to retrieve the partition type for the disk. The client[<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, 2011148 / 360

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

Saved successfully!

Ooh no, something went wrong!