ADIC Server Server User Manual


 
4-32 DAS ACI Functions
601626-B
•ERPC
EINVALID
ETIMEOUT
ESWITCHINPROGRESS
EBADCLIENT
ENOTSUPPHCMD
aci_drivestatus_one
The aci_drivestatus_one function queries the physical status
of up to 15 drives. See Figure 4-24.
Figure 4-24 aci_drivestatus_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 15. See
Figure 4-25.
The value of ACI_MAX_DRIVES_ENTRIES is equal to 15.
Figure 4-25 Returned Status
#include "aci.h"
init aci_drivestatus_one ( char *clientname,
char *drive
struct
aci_drive_entry *pstDriveEntry[ACI_MAX_DRIVE_ENTRIES]
)
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
};