Aci_drivestatus3_one, Aci_drivestatus3_one -36, Figure 4-28 – ADIC Server User Manual

Page 78: Figure 4-29

Advertising
background image

4-36

DAS ACI Functions

601626-B

ERPC

EINVALID

ETIMEOUT

ESWITCHINPROGRESS

EBADCLIENT

ENOTSUPPHCMD

aci_drivestatus3_one

The aci_drivestatus3_one function queries the physical status
of up to 250 drives. See Figure 4-28.

Figure 4-28

aci_drivestatus_3_one 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 aci_drive_entry
structure. The array element can be maximal 250. See
Figure 4-29.

The value of ACI_MAX_DRIVES_ENTRIES2 is equal to 250.

Figure 4-29

Returned Status

#include "aci.h"

init aci_drivestatus3_one ( char *clientname,

char *drive

struct

aci_drive_entry *pstDriveEntry[ACI_MAX_DRIVE_ENTRIES2]

)

struct aci_drive_entry {

char drive_name[ACI_DRIVE_LEN];

char amu_drive_name[ACI_AMU_DRIVE_LEN];

enum aci_drive_status drive_state;

char type;

char system_id[ACI_NAME_LEN];

char clientname

char volser[ACI_VOLSER_LEN];

bool_t cleaning

short clean_count

};

Advertising