ADIC Server Server User Manual


 
aci_drivestatus 4-21
21 Dec 2001
aci_drivestatus
The aci_drivestatus function queries status of up to 15 drives.
See Figure 4-15.
Figure 4-15 aci_drivestatus Function Call
Return the status of drives which are set to UP (active) for the
client with name clientname. If clientname is the NULL string,
return status on all drives. The status is returned in
drive_entry, an array of pointers to aci_drive_entry structures.
See Figure 4-16.
For additional information, refer to
aci_driveaccess on page 4-18, and
aci_drivestatus on page 4-21.
Figure 4-16 Returned Status
For an explanation of the aci_drive_entry function, refer to
aci_drivestatus on page 4-21
The maximum number of drives displayed is 15.
#include "aci.h"
int aci_drivestatus( char *clientname,
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[ACI_NAME_LEN];
char volser [ACI_VOLSER_LEN];
bool_t cleaning;
short clean_count;
};