VDS_DRIVE_STATUS enumeration (vds.h)

[Beginning with Windows 8 and Windows Server 2012, the Virtual Disk Service COM interface is superseded by the Windows Storage Management API.]

Defines the set of object status values for a drive.

Syntax

typedef enum _VDS_DRIVE_STATUS {
  VDS_DRS_UNKNOWN,
  VDS_DRS_ONLINE,
  VDS_DRS_NOT_READY,
  VDS_DRS_OFFLINE,
  VDS_DRS_FAILED,
  VDS_DRS_REMOVED
} VDS_DRIVE_STATUS, *PVDS_DRIVE_STATUS;

Constants

 
VDS_DRS_UNKNOWN
The status of the drive cannot be determined.
VDS_DRS_ONLINE
The drive is available and in use. The VDS_HEALTH value associated with this drive status can be any value except VDS_H_FAILED.
VDS_DRS_NOT_READY
The drive is busy. The VDS_HEALTH value can be any value except VDS_H_FAILED.
VDS_DRS_OFFLINE
The drive is physically present but has been removed from its RAID group or storage pool. For example, if the drive was removed from its RAID group because it failed, the drive status should be VDS_DRS_FAILED. If the drive was removed as part of rebalancing storage, the drive status should be VDS_DRS_OFFLINE.

When this drive status is set, a VDS_NF_DRIVE_REMOVED notification is sent.

The VDS_HEALTH value can be any value.
VDS_DRS_FAILED
The drive has failed. The VDS_HEALTH value should be VDS_H_FAILED or VDS_H_FAILING.
VDS_DRS_REMOVED
The drive has been physically unplugged from the subsystem. When this status is set, a VDS_NF_DRIVE_DEPART notification is sent.

Windows Server 2008, Windows Vista and Windows Server 2003:  This value is not supported.

Remarks

The IVdsDrive::SetStatusmethod passes a VDS_DRIVE_STATUS value as an argument to set the status of a drive, and the VDS_DRIVE_PROP structure includes a VDS_DRIVE_STATUS value as a member to indicate the current status.

If your application encounters a VDS_DRIVE_STATUS value that it does not recognize, it should display the drive status as unknown. It should not attempt to map the unrecognized drive status to another drive status.

Note  Additional constants might be added to the VDS_DRIVE_STATUS enumeration in future Windows versions. For this reason, your application must be designed to gracefully handle an unrecognized VDS_DRIVE_STATUS enumeration constant.
 

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header vds.h

See also

IVdsDrive::SetStatus

VDS Enumerations

VDS_DRIVE_PROP