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.

VIRTUAL_DISK_ACCESS_SURFACE_RW: Open the VHD for read-write surfacing (attaching)access. The caller must have (READ | WRITE) access to the virtual disk image file. If used in arequest to open a VHD that is already open, the other handles must be limited to eitherVIRTUAL_DISK_ACCESS_UNSURFACE or VIRTUAL_DISK_ACCESS_GET_INFO access;otherwise, the open request with this flag will fail. If the VHD is part of a differencing chain,the disk number for this request cannot be less than the ReadWriteDepth specified during theprior open request for that differencing chain.VIRTUAL_DISK_ACCESS_UNSURFACE: Open the VHD to allow unsurfacing (detaching) of asurfaced (attached) VHD. The caller must have (FILE_READ_ATTRIBUTES | FILE_READ_DATA)access to the virtual disk image file.VIRTUAL_DISK_ACCESS_GET_INFO: Open the VHD for retrieval of information. The callermust have READ access to the virtual disk image file.VIRTUAL_DISK_ACCESS_CREATE: Open the VHD for creation.VIRTUAL_DISK_ACCESS_METAOPS: Open the VHD to perform offline metaoperations. Forinformation on the offline metaoperations, see [<strong>MS</strong>DN-Compact<strong>Virtual</strong><strong>Disk</strong>], [<strong>MS</strong>DN-Expand<strong>Virtual</strong><strong>Disk</strong>, [<strong>MS</strong>DN-Merge<strong>Virtual</strong><strong>Disk</strong>], [<strong>MS</strong>DN-Set<strong>Virtual</strong><strong>Disk</strong>Info], and <strong>MS</strong>DN-VIRTDSKACC<strong>MS</strong>K]. The caller must have (READ | WRITE) access to the virtual disk image file,up to ReadWriteDepth if working with a differencing chain. If the VHD is part of a differencingchain, the backing store (host volume) is opened in read/write exclusive mode up toReadWriteDepth.VIRTUAL_DISK_ACCESS_READ: Reserved.VIRTUAL_DISK_ACCESS_ALL: Allows unrestricted access to the VHD. The caller must haveunrestricted access rights to the virtual disk image file.VIRTUAL_DISK_ACCESS_WRITABLE: Reserved.2.2.2.18.2 Structures2.2.2.18.2.1 <strong>VDS</strong>_VDISK_PROPERTIESThe <strong>VDS</strong>_VDISK_PROPERTIES structure defines the properties of a virtual disk.typedef struct _<strong>VDS</strong>_VDISK_PROPERTIES {<strong>VDS</strong>_OBJECT_ID Id;<strong>VDS</strong>_VDISK_STATE State;VIRTUAL_STORAGE_TYPE <strong>Virtual</strong>DeviceType;ULONGLONG <strong>Virtual</strong>Size;ULONGLONG PhysicalSize;[string] LPWSTR pPath;[string] LPWSTR pDeviceName;DEPENDENT_DISK_FLAG <strong>Disk</strong>Flag;BOOL bIsChild;LPWSTR pParentPath;} <strong>VDS</strong>_VDISK_PROPERTIES,*P<strong>VDS</strong>_VDISK_PROPERTIES;Id: A unique <strong>VDS</strong>-specific session identifier of the disk.State: A <strong>VDS</strong>_VDISK_STATE enumeration value that specifies the virtual disk state.[<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, 201189 / 360

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

Saved successfully!

Ooh no, something went wrong!