IVdsDisk2::SetSANMode (Opnum 3)

The SetSANMode method sets the SAN mode of a disk to either offline or online. A disk that is offline exposes no volume devices for partitions or volumes with extents on that disk. A disk can be REAONLY or READWRITE independent of the offline or online setting.

   [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 [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service Remote Protocol, see section 2.2.3.

ERROR_SUCCESS (0x00000000)

When the server receives this message, it MUST set the SAN mode of the disk to offline or online, as specified by bEnable, and then return an HRESULT indicating failure or success.<92><93>