aci_scratch_info 4-113
21 Dec 2001
Figure 4-103 Example of the aci_scratch_info Function
/* List scratch pool information */
int rc;
char *pszPoolName = "";
enum aci_media type = ACI_3590;
long lVolserCount, lScratchCount;
if ((rc =
aci_scratch_info (pszPoolName, type,
&lVolserCount, &lScratchCount)) != 0
)
{
aci_perror ("Command failed: ");
}
else
{
if (strcmp (pszPoolName, "") == 0)
{
printf ("DEFAULT_POOL:VolserCount:%d,
ScratchCount:%d\n",
lVolserCount, lScratchCount);
}
else
{
printf ("%s: VolserCount: %d,
ScratchCount: %d \n",
pszPoolName, lVolserCount,
lScratchCount);
}
}