ADIC Server Server User Manual


 
aci_scratch_unset 4-117
21 Dec 2001
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-107 for an example of the aci_scratch_unset
function.
Figure 4-107 Example of the aci_scratch_unset Function
/* Change volume’s scratch status */
int rc;
char *pszPoolName = "";
enum aci_media type = ACI_3590;
char *pszVolser = "VOL001"
rc = aci_scratch_unset(pszPoolName,type,pszVolser);
if( rc )
{
/* Change volume’s scratch status */
int rc;
char *pszPoolName = "";
enum aci_media type = ACI_3590;
char *pszVolser = "VOL001"
rc = aci_scratch_unset(pszPoolName,type,pszVolser);
if( rc )
{
aci_perror ("aci_scratch_unset failed");
}
else
{
printf ("Volser %s removed from
scratchpool.\n",
pszVolser);
}