2.2.3.54 CLUS_SBL_DISK_STATE
The CLUS_SBL_DISK_STATE structure<46> represents the disk state information in processing the CLUSCTL_NODE_GET_SBL_DISK_STATE_EX (section 3.1.4.3.4.20) control code (section 3.1.4.3.4.20). It is a custom-marshalled structure that contains the following fields.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Version |
|||||||||||||||||||||||||||||||
DiskId |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
DeviceNumber |
|||||||||||||||||||||||||||||||
IsFlash |
IsCacheDevice |
Reserved1 |
|||||||||||||||||||||||||||||
Status |
|||||||||||||||||||||||||||||||
State |
|||||||||||||||||||||||||||||||
AdditionalStateInfo |
|||||||||||||||||||||||||||||||
CacheMode |
|||||||||||||||||||||||||||||||
DirtyDataBytes |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Read (24 bytes) |
|||||||||||||||||||||||||||||||
Write (24 bytes) |
|||||||||||||||||||||||||||||||
Reserved2 |
Version (4 bytes): Indicates the version of the request structure. This field MUST be set to 0x00000001.
DiskId (16 bytes): A GUID which represents the disk identifier.
DeviceNumber (4 bytes): A 32-bit integer indicating the device number of the disk.
IsFlash (1 byte): A Boolean value. When set to TRUE indicates that this is a flash device.
IsCacheDevice (1 byte): A Boolean value. When set to TRUE indicates this is a cache device.
Reserved1 (2 bytes): Used as padding bytes. This field MUST be ignored.
Status (4 bytes): Indicates the configuration status of the disk.
State (4 bytes): Indicates the storage disk's state. This is set to one of the following values.
-
Value
Meaning
S2DCacheDiskStateUnknown
0x00000000
Indicates disk is in unknown state.
S2DCacheDiskStateInvalid
0x00001001
Indicates disk is in invalid state.
S2DCacheDiskStateMissing
0x00001002
Indicates disk state is missing.
S2DCacheDiskStateCannotSurface
0x00001003
Indicates disk state cannot be surfaced.
S2DCacheDiskStateNeedsRepair
0x00001004
Indicates disk needs repair.
S2DCacheDiskStateConfiguring
0x00002001
Indicates disk is in configuring state.
S2DCacheDiskStateBound
0x00003001
Indicates disk is in bound state.
S2DCacheDiskStateDisabled
0x00003002
Indicates disk is in disabled state.
S2DCacheDiskStateInMaintenance
0x00003003
Indicates disk is in maintenance state.
S2DCacheDiskStateNoFlash
0x00003004
Indicates disk has no flash.
S2DCacheDiskStateNotHybrid
0x00003005
Indicates disk state is not hybrid.
AdditionalStateInfo (4 bytes): Indicates extra details about the current state of the disk.
CacheMode (4 bytes): Indicates the type of cache mode. This is set to one of the following values.
-
Value
Meaning
Disabled
0x00000000
Indicates cache is in disabled mode.
ReadOnly
0x00000001
Indicates cache is in read-only mode.
ReadWrite
0x00000002
Indicates cache is in read-write mode.
WriteOnly
0x00000003
Indicates cache is in write-only mode.
DirtyDataBytes (8 bytes): A 64-bit value that indicates the total number of bytes of dirty data of cached disk.
Read (24 bytes): Indicates the read error statistics of the cached disk as specified in CLUS_SBL_DISK_HEALTH_STAT (section 2.2.3.56).
Write (24 bytes): Indicates the write error statistics of the cached disk as specified in CLUS_SBL_DISK_HEALTH_STAT.
Reserved2 (4 bytes): Reserved for future use. This field MUST be ignored.