2.2.4.33 SVHDX_OPEN_DEVICE_CONTEXT_V2_RESPONSE Structure

The SVHDX_OPEN_DEVICE_CONTEXT_RESPONSE_V2 packet is sent by the server in response to open the shared virtual disk request.

This is valid only for the RSVD Protocol version 2.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Version

HasInitiatorId

Reserved

InitiatorId

...

...

...

Flags

OriginatorFlags

OpenRequestId

...

InitiatorHostNameLength

InitiatorHostName (126 bytes)

...

...

VirtualDiskPropertiesInitialized

ServerServiceVersion

VirtualSectorSize

PhysicalSectorSize

VirtualSize

...

Version (4 bytes): The version of the create context. It MUST be set to RSVD_ECP_CONTEXT_VERSION_2.

HasInitiatorId (1 byte): A Boolean value that, if set to TRUE (0x01), indicates that the message has a valid InitiatorId.

Reserved (3 bytes): This field MUST be set to zero when sent and MUST be ignored on receipt.

InitiatorId (16 bytes): A GUID that optionally identifies the initiator of the open request.

Flags (4 bytes): A value for the open sent by the client.

OriginatorFlags (4 bytes): This field is used to indicate which component has originated or issued the operation. This field MUST be set to one of the following values:

Name

Meaning

SVHDX_ORIGINATOR_PVHDPARSER

0x00000001

Shared virtual disk file to be opened as a virtual SCSI disk device

SVHDX_ORIGINATOR_VHDMP

0x00000004

Shared virtual disk file to be opened in underlying object store

OpenRequestId (8 bytes): A 64-bit value assigned by the client for an outgoing request.

InitiatorHostNameLength (2 bytes): The length, in bytes, of the InitiatorHostName. This value MUST be less than or equal to RSVD_MAXIMUM_NAME_LENGTH.

InitiatorHostName (126 bytes): A 126-byte buffer containing a Unicode UTF-16 string that specifies the computer name which initiated the request.

VirtualDiskPropertiesInitialized (4 bytes): A field that indicates whether VirtualSectorSize, PhysicalSectorSize, and VirtualSize fields are updated. A nonzero value indicates TRUE.

ServerServiceVersion (4 bytes): The current version of the protocol running on the server.

VirtualSectorSize (4 bytes): The virtual sector size of the virtual disk.

PhysicalSectorSize (4 bytes): The physical sector size of the virtual disk.

VirtualSize (8 bytes): The current length of the virtual disk, in bytes.