Get Function For The Failure Prediction Status Of The Drive (Gethddpredict); Table 6-8 List Of Values Stored In Each Element Of The Hdd_Predict_Data - Hitachi HF-W7500 40 Manual

Industrial computer, ras features
Table of Contents

Advertisement

6. LIBRARY FUNCTIONS

6.1.8 Get function for the failure prediction status of the drive (GetHddPredict)

<Name>
GetHddPredict - Get function for the failure prediction status of the drive
<Syntax>
#include <w2kras.h>
BOOL GetHddPredict(PHDD_PREDICT_DATA pHddData);
<Description>
This function acquires the failure prediction status of the internal drives of this equipment.
In order to use this function, in the RAS Setup window, select the "Function is available"
check box under Drive failure prediction setting (SMART). If this check box is cleared, this
function terminates with an error. If you call the GetLastError Windows API function, an error
code W2KRAS_HDDPREDICT_INVALID is returned. The parameters of this function are
explained below.
NOTE
If the operating system is a 64-bit version, this function is not used. Use the
function (hfwDiskStat) provided as an alternative.
pHddData:
This parameter specifies a pointer to an HDD_PREDICT_DATA structure that stores the
acquired drive failure prediction status.
typedef struct HDD_PREDICT_DATA {
DWORD Hdd1_Predict; //Failure prediction status of the drive on the drive bay1
DWORD Hdd2_Predict; //Failure prediction status of the drive on the drive bay2
} HDD_PREDICT_DATA, *PHDD_PREDICT_DATA;
Each element of the HDD_PREDICT_DATA structure above stores a value described in
Table 6-8 when this function returns successfully.
Table 6-8 List of Values Stored in Each Element of the HDD_PREDICT_DATA Structure
HDD_PREDICT_OFF
HDD_PREDICT_ON
HDD_NOT_CONNECTED (0x02)
HDD_PREDICT_FAILURE (0x03)
Value
(0x00)
(0x01)
Meaning
The HDD is working properly.
Failure is anticipated.
A drive is not connected.
Acquiring the failure prediction status failed.
6-18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents