Return values, Aci_drivestatus4, Return values -29 – ADIC Server User Manual

Page 71: Aci_drivestatus4 -29, Figure 4-22

Advertising
background image

aci_drivestatus4

4-29

21 Dec 2001

Return Values

0: The call was successful

-1: The call has failed

The external variable d_errno is set to one of the following DAS
error codes:

EBADCLIENT

ERPC

EINVALID

EDASINT

ETIMEOUT

ESWITCHINPROGRESS

EDASINT

aci_drivestatus4

The aci_drivestatus4 function queries the physical status of up
to 380 drives. See Figure 4-22.

Figure 4-22

aci_drivestatus4 Function Call

Return the status of drives which are set to UP for the client
with the name clientname. If clientname is the NULL string, the
call returns status on all drives. If a value for the drive field is
indicated, the information relates to that single drive. The
status is returned in an array of pointers to the
aci_ext_drive_entry structure. The array element can be
maximal 380. See Figure 4-23.

The variable ACI_MAX_DRIVE_ENTRIES4 is equal to 380.

#include "aci.h"

init aci_drivestatus4 ( char *clientname,

char *drive

struct

aci_ext_drive_entry4

*

pstDriveEntry

[

ACI_MAX_DRIV_ENTRIES4

])

Advertising