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.

<strong>VDS</strong>_VST_DETACH_PENDING: The virtual disk has been added to the service's list of objects,the virtual disk file has been opened using IVdsV<strong>Disk</strong>::Open, and the virtual disk is in theprocess of being detached.<strong>VDS</strong>_VST_COMPACTING: The virtual disk has been added to the service's list of objects, thevirtual disk file has been opened using IVdsV<strong>Disk</strong>::Open, and the virtual disk is beingcompacted.<strong>VDS</strong>_VST_MERGING: The virtual disk has been added to the service's list of objects, the virtualdisk file has been opened using IVdsV<strong>Disk</strong>::Open, and the virtual disk is being merged.<strong>VDS</strong>_VST_EXPANDING: The virtual disk has been added to the service's list of objects, thevirtual disk file has been opened using IVdsV<strong>Disk</strong>::Open, and the virtual disk is beingexpanded.<strong>VDS</strong>_VST_DELETED: The virtual disk has been deleted.<strong>VDS</strong>_VST_MAX: Denotes the maximum acceptable value for this type. <strong>VDS</strong>_VST_MAX - 1 is themaximum acceptable value.When the service has been made aware of a virtual disk, the state is set to <strong>VDS</strong>_VST_ADDED. Inorder to perform any operations on the virtual disk such as attaching it, detaching it, merging,compacting, or expanding, the virtual disk file is opened using IVdsV<strong>Disk</strong>::Open. Once the virtualdisk is opened, its state transitions to <strong>VDS</strong>_VST_OPEN.Attach: To attach a virtual disk, the virtual disk object is first added to the service's list of objectsand its state is set to <strong>VDS</strong>_VS_ADDED. Next IVdsV<strong>Disk</strong>::Open MUST be called against the virtualdisk, and the state transitions to <strong>VDS</strong>_VST_OPEN. When the attach operation is initiated against thevirtual disk, the state of the virtual disk transitions to <strong>VDS</strong>_VST_ATTACH_PENDING. The virtual diskremains in this state until the operating system disk object corresponding to the virtual disk hasbeen instantiated. Once this object is instantiated, the virtual disk object's state transitions to<strong>VDS</strong>_VST_ATTACHED. The IVdsOpenV<strong>Disk</strong> interface is then released, the Open<strong>Virtual</strong><strong>Disk</strong> object isremoved, and the state transitions to <strong>VDS</strong>_VST_ATTACHED_NOT_OPEN.Detach: To detach a virtual disk, the virtual disk object is first added to the service's list of objectsand its state is set to <strong>VDS</strong>_VST_ADDED. Next IVdsV<strong>Disk</strong>::Open MUST be called against the virtualdisk, and the state transitions to <strong>VDS</strong>_VST_OPEN. When the detach operation is initiated against thevirtual disk, the state of the virtual disk transitions to <strong>VDS</strong>_VST_DETACH_PENDING. The virtual diskremains in this state until the operating system disk object corresponding to the virtual disk hasbeen removed. Once this object is removed, the virtual disk object's state transitions to<strong>VDS</strong>_VST_OPEN. The IVdsOpenV<strong>Disk</strong> interface is then released, the Open<strong>Virtual</strong><strong>Disk</strong> object isremoved, and the state transitions to <strong>VDS</strong>_VST_ADDED.Compact: A compact operation may be performed against either an attached virtual disk or adetached virtual disk. To compact a virtual disk, the virtual disk object is first added to the service'slist of objects and its state is set to <strong>VDS</strong>_VST_ADDED.To compact a detached virtual disk, IVdsV<strong>Disk</strong>::Open MUST be called against the virtual disk, andthe state transitions to <strong>VDS</strong>_VST_OPEN. When the compact operation is initiated against the virtualdisk, the state transitions to <strong>VDS</strong>_VST_COMPACTING. Once the compact operation has completed,the state then transitions back to <strong>VDS</strong>_VST_OPEN. The IVdsOpenV<strong>Disk</strong> interface is then released,the Open<strong>Virtual</strong><strong>Disk</strong> object is removed, and the new state is <strong>VDS</strong>_VST_ADDED.An attached virtual disk for which there is no Open<strong>Virtual</strong><strong>Disk</strong> object will have the state<strong>VDS</strong>_VST_ATTACHED_NOT_OPEN. To compact an attached virtual disk, IVdsV<strong>Disk</strong>::Open MUST becalled against the virtual disk, and the state transitions to <strong>VDS</strong>_VST_ATTACHED. When the compactoperation is initiated against the virtual disk, the state transitions to <strong>VDS</strong>_VST_COMPACTING. Once[<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, 201186 / 360

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

Saved successfully!

Ooh no, something went wrong!