VDS_DRIVE_STATUS enumeration (vdshwprv.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 = 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, *PVDS_DRIVE_STATUS;
Constants
VDS_DRS_UNKNOWN Value: 0 The status of the drive cannot be determined. |
VDS_DRS_ONLINE Value: 1 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 Value: 2 The drive is busy. The VDS_HEALTH value can be any value except VDS_H_FAILED. |
VDS_DRS_OFFLINE Value: 4 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 Value: 5 The drive has failed. The VDS_HEALTH value should be VDS_H_FAILED or VDS_H_FAILING. |
VDS_DRS_REMOVED Value: 8 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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | vdshwprv.h |