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.

);ulFlags: MUST be set to <strong>VDS</strong>_DF_READ_ONLY.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.Note This method is not valid for CD/DVD or super floppy devices.This method MUST return an HRESULT failure for OS boot disk, system disk, pagefile disk,hibernation file disk, and crash dump disk.When the server receives this message, it MUST validate the following parameter:•Verify that the ulFlags parameter is <strong>VDS</strong>_DF_READ_ONLY.The server MUST perform the following in sequence:•Clear the read-only attribute of the disk.•For each callback object that is registered in the list of callback objects, call the callback object'sIVdsAdviseSink::OnNotify (Opnum 3) method by using a <strong>VDS</strong>_NOTIFICATION structurethat has the following attributes:•objectType member is <strong>VDS</strong>_NTT_DISK.•<strong>Disk</strong> member is a <strong>VDS</strong>_DISK_NOTIFICATION that has the following attributes:•ulEvent is <strong>VDS</strong>_NF_DISK_MODIFY.•diskId is the <strong>VDS</strong>_OBJECT_ID of this disk object.•Return an HRESULT indicating failure or success.3.4.5.2.21 IVds<strong>Disk</strong>2 Methods3.4.5.2.21.1 IVds<strong>Disk</strong>2::SetSANMode (Opnum 3)The SetSANMode method sets the SAN mode of a disk to either offline or online. A disk that isoffline exposes no volume devices for partitions or volumes with extents on that disk. A disk may beREAONLY or READWRITE independent of the offline or online setting.HRESULT SetSANMode([in] long bEnable);bEnable: A Boolean value that indicates whether to set the disk to either online or offline.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.[<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, 2011209 / 360

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

Saved successfully!

Ooh no, something went wrong!