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

Industrial computer
Hide thumbs Also See for HF-W7500 65:
Table of Contents

Advertisement

6. LIBRARY FUNCTIONS

6.1.8 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;
The number of valid Disk Status arrays is stored In Disk_Count.
Disk_Status[n] stores the type of drive (upper 16 bits) and the condition of the drive (lower
16 bits) on the drive bay (n + 1). The following values are used.
Disk_Status
upper 16bits
lower 16bits
(*1)
This value is returned in the B/T Model only.
If multiple states occur simultaneously, the logical disjunction of values shown in Table 6-8
is obtained.
If drive fault prediction detection and usage time exceed a determined value at the same
time:
0x0048 will be stored in the lower 16 bits of Disk Status.
Disk_Count;
Disk_Status[16];
Table 6-8 List of Values Stored in Disk_Status
0x0001
The type of drive is HDD.
0x0002
The type of drive is SSD.
0x0001
The drive is working properly.
0x0008
Drive failure prediction (SMART) is detected.
0x0010
A drive is not connected.
0x0020
The drive condition could not be acquired.
The drive power-on (=used) hours exceeded the
0x0040
threshold.
0x0002
The drive is disconnected from the RAID. (*1)
A new drive is connected to the RAID and is being
0x0004
rebuilt. (*1)
//Drive condition
Description
6-18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hf-w7500 60

Table of Contents