CoGetRaidStatus

■Description

Get hardware RAID status.

■Synopsis

int CoGetRaidStatus(int fd, unsigned short* status)

■Argument

  int fd
    Please specify handle acquired by CoHWRaidOpen function.

  unsigned short* status
    Specifies a pointer to a variable that stores the status of the hardware RAID.

    If the function is successful, this variable will contain the following hardware RAID status.
  
Definition Status
RAIDSTS_NORMAL Normal
RAIDSTS_DRIVE1_BROKEN Drive1 broken
RAIDSTS_DRIVE2_BROKEN Drive2 broken
RAIDSTS_BROKEN Both Drive(1,2) broken
RAIDSTS_DRIVE1_REBUILD Drive1 rebuild
RAIDSTS_DRIVE2_REBUILD Drive2 rebuild
RAIDSTS_DRIVE1_ERROR Drive1 read error
RAIDSTS_DRIVE2_ERROR Drive2 read error
RAIDSTS_VERIFY_CHECK Verify Checking
RAIDSTS_INACCESSIBLE Access fail. (any other status)

■RETURN VALUE

If the function succeeds, NO_ERROR is returned.
If the function fails, DRIVER_FAIL is returned.

The other errors : Error code details



Function List