Hitachi HF-W6500 60 Manual page 123

Industrial computer
Table of Contents

Advertisement

Table 6-9 shows a list of defined values on drive types and statuses.
Defined value
DRIVETYPE_HDD
(0x00010000)
DRIVETYPE_SSD
(0x00020000)
DISKSTAT_HEALTHY
(0x00000001)
DISKSTAT_SMART
(0x00000008)
DISKSTAT_NOT_CONNECTED
(0x00000010)
DISKSTAT_UNKNOWN
(0x00000020)
DISKSTAT_OVERRUN
(0x00000040)
DISKSTAT_OFFLINE
(0x00000002)
DISKSTAT_REBUILD
(0x00000004)
<Diagnosis>
If this function completes successfully, the function returns TRUE. If this function terminates
with an error, the function returns FALSE. When this function terminates with an error, the
value stored in phfwDiskStatus is invalid.
When this function terminates with an error, call the GetLastError Windows API function to get
the error code. Error codes returned by this function on its own are as follows.
Error code (value)
HFWRAS_INVALID_PARAMETER
(0x20000001)
HFWRAS_NOT_INITIALIZE
(0x20000002)
HFWRAS_INTERNAL_ERROR
(0x20000003)
Other error codes come from the Windows API functions used by this function. For details
about those error codes, refer to the Windows API help.
<Sample program>
We provide a sample program that uses this function in C. For information about the name of
the sample program and where you can find it, see "6.2 Sample Programs".
Table 6-9 List of Define directive
The type of drive is HDD.
The type of drive is SSD.
The drive is working properly.
Drive failure prediction (SMART) is detected.
A drive is not connected.
The drive condition could not be acquired.
The drive power-on (=used) hours exceeded the
threshold.
The drive is disconnected from the RAID.
A new drive is connected to the RAID and is being
rebuilt.
There is an error in the specified parameters.
Startup of the RAS software has not completed yet.
An internal error has been generated.
6-19
6. LIBRARY FUNCTIONS
Description
Description

Advertisement

Table of Contents
loading

Table of Contents