aci_clientaccess 4-13
21 Dec 2001
Figure 4-7 Example of the aci_clientaccess Function
/* Add a volser range to a clients access list */
int rc = 0;
enum aci_command action = ACI_ADD; /*default action*/
char *client = "SomeClient";
char *volser = "AAB000 - AAB999";
char *drive = "";
enum aci_media type = ACI_3590;
if ((rc = aci_clientaccess ( client,
action,
volser,
type,
drive ) ))
{
aci_perror( "Command failed: " );
}
else
{
if (*volser)
{
printf ( "Volser range %s for client %s
added.\n",
volser, client );
}
if (*drive)
{
printf ( "Drive range %s added for client
%s.\n",
drive, client );
}
}