Adic Server Manual de usuario Pagina 62

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 218
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 61
4-20 DAS ACI Functions
601626-B
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.
Figure 4-14 Example of the aci_driveaccess Function
/* 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 ) ))
{
aci_perror( "Drive allocation failed: " );
}
else
{
printf( "Allocation of %s for %s successful\n",
drive, client );
}
Vista de pagina 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 217 218

Comentarios a estos manuales

Sin comentarios