Return Values - ADIC Server User Manual

Adic server user manual
Table of Contents

Advertisement

Return Values

/* Add volume to default scratch pool */
int
rc;
char *pszPoolName = "";
char *pszVolser
enum aci_media type = ACI_3590;
rc = aci_scratch_set(pszPoolName, type, pszVolser);
if( rc )
{
}
else
{
pszVolser);
}
Figure 4-105
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.
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.
= "VOL001";
aci_perror ("aci_scratch_set failed");
printf("Scratch volume %s set.\n ",
Example of the aci_scratch_set Function
aci_scratch_set
4-115

Advertisement

Table of Contents
loading

Table of Contents