Get Function For The Drive Condition (Hfwdiskstat) - Hitachi HF-W7500 40 Manual

Industrial computer, ras features
Table of Contents

Advertisement

6. LIBRARY FUNCTIONS

6.1.9 Get function for the drive condition (hfwDiskStat)

<Name>
hfwDiskStat - Drive status acquisition
<Syntax>
#include <hfwras.h>
BOOL hfwDiskStat(PHFW_DISK_STATUS phfwDiskStatus);
<Description>
The hfwDiskStat function stores the drive conditions to a structure pointed by phfwDiskStatus.
The parameters of this function are explained below.
phfwDiskStatus:
This parameter specifies a pointer to an HFW_DISK_STATUS structure that stores the drive
conditions.
typedef struct HFW_DISK_STATUS{
DWORD
DWORD
} HFW_DISK_STATUS, *PHFW_DISK_STATUS;
Disk_Count stores "3", the number of drive bays on this equipment.
Disk_Status[n] stores the condition of the drive on the drive bay (n + 1). The following
values are used to indicate a drive condition. 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 returned in the D Model only.
Disk_Count;
Disk_Status[16];
Table 6-9 List of Values Stored in Disk_Status
The drive is working properly.
Drive failure prediction (SMART) is detected. (*1)
A drive is not connected.
The drive condition could not be acquired.
The drive power-on (=used) hours exceeded the
threshold. (*2)
The drive is disconnected from the RAID. (*3)
A new drive is connected to the RAID and is being
rebuilt. (*3)
//Drive condition
Description
6-20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents