Download Print this page

Hitachi HF-BT1000 User Manual page 94

Advertisement

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];
} 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.
Defined value
DISKSTAT_HEALTHY
(0x00000001)
DISKSTAT_SMART
(0x00000008)
DISKSTAT_NOT_CONNECTED
(0x00000010)
DISKSTAT_UNKNOWN
(0x00000020)
DISKSTAT_OVERRUN
(0x00000040)
DISKSTAT_OFFLINE
(0x00000002)
DISKSTAT_REBUILD
(0x00000004)
(*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.
//Drive condition
Table 6-3 List of Values Stored in Disk_Status
The drive is working properly.
Drive failure prediction (SMART) is detected. (*1)
A drive is not connected. (*3)
The drive condition could not be acquired.
The drive power-on (=used) hours exceeded the
threshold. (*2)
The drive is disconnected from the RAID. (*4)
A new drive is connected to the RAID and is being
rebuilt. (*4)
Description
6-7
6. LIBRARY FUNCTIONS

Advertisement

loading