6. LIBRARY FUNCTIONS
6-7
6.1.5 Get function for the drive condition (hfbDiskStat)
<Name>
hfbDiskStat - Drive status acquisition
<Syntax>
#include <hfbras.h>
BOOL hfbDiskStat(PHFW_DISK_STATUS phfbDiskStatus);
<Description>
The hfbDiskStat function stores the drive conditions to a structure pointed by phfbDiskStatus.
The parameters of this function are explained below.
phfwDiskStatus:
This parameter specifies a pointer to an HFB_DISK_STATUS structure shown below that stores
the drive conditions.
typedef struct HFB_DISK_STATUS{
DWORD
Disk_Count;
DWORD
Disk_Status[16];
//Drive condition
} HFB_DISK_STATUS, *PHFB_DISK_STATUS;
Disk_Count stores “2”, the number of drive bays on this equipment.
Disk_Status[n] stores the condition of the drive on the drive bay (n + 1). Table 6-3 lists the
value that represents each status. Upper 16 bits are reserved. The values of those reserved bits
are undefined. Do not use those bits.
Table 6-3 List of Values Stored in Disk_Status
Defined value
Description
DISKSTAT_HEALTHY
(0x00000001)
The drive is working properly.
DISKSTAT_SMART
(0x00000008)
Drive failure prediction (SMART) is detected. (*1)
DISKSTAT_NOT_CONNECTED
(0x00000010)
A drive is not connected. (*3)
DISKSTAT_UNKNOWN
(0x00000020)
The drive condition could not be acquired.
DISKSTAT_OVERRUN
(0x00000040)
The drive power-on (=used) hours exceeded the
threshold. (*2)
DISKSTAT_OFFLINE
(0x00000002)
The drive is disconnected from the RAID. (*4)
DISKSTAT_REBUILD
(0x00000004)
A new drive is connected to the RAID and is being
rebuilt. (*4)
(*1) This value is not stored if the drive failure prediction is not enabled.
(*2) This value is not stored if the drive usage monitoring is not enabled.
(*3) This value is stored if the equipment is non-D Model.
(*4) This value is stored if the equipment is D Model.
Содержание HF-BT1000
Страница 1: ...BT 63 0004 01 ...
Страница 2: ...BT 63 0004 01 ...
Страница 15: ...This Page Intentionally Left Blank ...
Страница 79: ...This Page Intentionally Left Blank ...
Страница 103: ...This Page Intentionally Left Blank ...
Страница 111: ...This Page Intentionally Left Blank ...
Страница 127: ...This Page Intentionally Left Blank ...
Страница 129: ...This Page Intentionally Left Blank ...