Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VDS_DRIVE_STATUS enumeration

[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_DRS_UNKNOWN    = 0,
  VDS_DRS_ONLINE     = 1,
  VDS_DRS_NOT_READY  = 2,
  VDS_DRS_OFFLINE    = 4,
  VDS_DRS_FAILED     = 5,
  VDS_DRS_REMOVED    = 8
} VDS_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::SetStatus method 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;
VdsHwPrv.h (for hardware providers)

See also

VDS Enumerations
VDS_DRIVE_PROP
IVdsDrive::SetStatus

 

 

Community Additions

Show:
© 2014 Microsoft