Return Values - ADIC Server User Manual

Adic server user manual
Table of Contents

Advertisement

/* Allocate a drive for client use */
int rc = 0;
char *client = "SomeClient";
char *drive = "Drive1";
enum aci_drive_status status;
status = ACI_DRIVE_UP;
if (( rc = aci_driveaccess( client, drive, status ) ))
{
}
else
{
}
Figure 4-14
4-20
DAS ACI Functions

Return Values

The aci_driveaccess returns the following values:
0: The call was successful.
-1: The call failed.
The external variable d_errno is set to one of the following DAS
error codes:
ERPC
EINVALID
ENODRIVE
EDRVOCCUPIED
ENOTHAUTH
EUPELSE
EBADCLIENT
ENOTAUTH
ETIMEOUT
ESWITCHINPROG
EEXUP
EDASINT
See Figure 4-14 for an example of the aci_driveaccess function.
aci_perror( "Drive allocation failed: " );
printf( "Allocation of %s for %s successful\n",
drive, client );
Example of the aci_driveaccess Function
601626-B

Advertisement

Table of Contents
loading

Table of Contents