Download Print this page

Hitachi HF-BT1000 User Manual page 96

Advertisement

6.1.6 Get function for the RAID status (hfbRaidStat)
<Name>
hfbRaidStat - RAID status acquisition
<Syntax>
#include <hfbras.h>
BOOL hfbRaidStat (PHFW_RAID_STATUS phfbRaidStatus);
<Description of the function>
The hfbRaidStat function stores the RAID status to a structure pointed to by phfbRaidStatus.
The parameters of this function are explained below.
phfbRaidStatus:
Specifies the pointer to the HFB_RAID_STATUS structure (shown below) where the RAID
status is stored.
typedef struct HFB_RAID_STATUS{
DWORD
HFB_ARRAY_STATUS
} HFB_RAID_STATUS, *PHFB_RAID_STATUS ;
Array_Count shows the number of monitored RAID arrays on this equipment (1).
Each element of Array shows the status of the corresponding RAID. The number of valid
elements is returned in Array_Count. (This value is 1, which means only Array[0] is valid.) The
elements after that are reserved. The values of those reserved elements are NULL. Do not access
those elements. The HFB_ARRAY_STATUS structure is defined as follows.
typedef struct HFB_ARRAY_STATUS{
DWORD
DWORD
DWORD
DWORD
}HFB_ARRAY_STATUS, *PHFB_ARRAY_STATUS ;
Array_Count;
Array[16];
Level;
//RAID level
Disk_Number;
//Drives in the RAID
Status;
//RAID status
Progress;
//Progress (0 - 99[%])
[D Model only]
// Number of monitored arrays
// Array information
6-9
6. LIBRARY FUNCTIONS

Advertisement

loading