Return values, Return values -115, Figure 4-105 – ADIC Server User Manual

Page 157

Advertising
background image

aci_scratch_set

4-115

21 Dec 2001

The command will be rejected with the message
EOTHERPOOL if the medium already exists in another
scratch pool.

For additional information, refer to
aci_scratch_unset on page 4-116.

Return 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:

EINVALID

EDASINT

ENOPOOL

ERPC

ETIMEOUT

ESWITCHINPROG

EDATABASE

ENOTSUPPHCMD

See Figure 4-105 for an example of the aci_scratch_set
function.

Figure 4-105

Example of the aci_scratch_set Function

/* Add volume to default scratch pool */

int rc;

char *pszPoolName = "";

char *pszVolser = "VOL001";

enum aci_media type = ACI_3590;

rc = aci_scratch_set(pszPoolName, type, pszVolser);

if( rc )

{

aci_perror ("aci_scratch_set failed");

}

else

{

printf("Scratch volume %s set.\n ",

pszVolser);

}

Advertising