6. LIBRARY FUNCTIONS
6-20
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
Disk_Count;
DWORD
Disk_Status[16];
//Drive condition
} 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.
Table 6-9 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.
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. (*3)
DISKSTAT_REBUILD
(0x00000004)
A new drive is connected to the RAID and is being
rebuilt. (*3)
(*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.
Summary of Contents for HF-W7500 40
Page 1: ...WIN 63 0090 03 ...
Page 2: ...WIN 63 0090 03 ...
Page 23: ...This page is intentionally left blank ...
Page 105: ...This page is intentionally left blank ...