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.

ProviderSpecificFlags: Flags specific to the type of virtual disk being detached.Return Values: The method MUST return zero to indicate success, or return an implementationspecificnonzero error code to indicate failure.When the server receives this message, it MUST validate the following parameters:•Verify that Flags contains a bitwise OR of values from the DETACH_VIRTUAL_DISK_FLAGenumeration.The server MUST then perform the following in sequence:•Pass the input parameters to the operating system to detach the disk.•Return any success or failure based on the operating system's response.3.4.5.2.39.3 IVdsOpenV<strong>Disk</strong>::DetachAndDelete (Opnum 5)The DetachAndDelete method removes the operating system disk device that represents a virtualdisk and deletes any backing store file.HRESULT DetachAndDelete([in] DETACH_VIRTUAL_DISK_FLAG Flags,[in] ULONG ProviderSpecificFlags);Flags: A DETACH_VIRTUAL_DISK_FLAG (section 2.2.2.19.1.2) enumeration value thatspecifies how the virtual disk is to be detached.ProviderSpecificFlags: Flags specific to the type of virtual disk being detached.Return Values: The method MUST return zero to indicate success, or return an implementationspecificnonzero error code to indicate failure.When the server receives this message, it MUST validate the following parameters:•Verify that Flags contains a bitwise OR of values from the DETACH_VIRTUAL_DISK_FLAGenumeration.The server MUST then perform the following in sequence:•Pass the input parameters to the operating system to detach the disk.•Delete the file associated with the virtual disk.•Return any success or a failure if either the detach or the delete failed.3.4.5.2.39.4 IVdsOpenV<strong>Disk</strong>::Compact (Opnum 6)The Compact method reduces the size of the virtual disk file (the backing store). This requires thatthe virtual disk be detached. Compact is applicable only to differencing type virtual disks and virtualdisks created using CREATE_VIRTUAL_DISK_FLAG_NONE. The Compact method does not changethe size of the virtual disk.HRESULT Compact([in] COMPACT_VIRTUAL_DISK_FLAG Flags,[<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, 2011272 / 360

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

Saved successfully!

Ooh no, something went wrong!