4-70 DAS ACI Functions 601626-B
Figure 4-58 Example of the aci_getvolertodrive Function
aci_getVolserToSide
The aci_getvolsertoside function returns the second volser to
an optical disk (a volume with two volsers). See Figure 4-59.
Figure 4-59 aci_getVolserToSide Function Call
This function returns in the ‘sideinfo’ parameter, the volser
attached to one of a two sided volume. The ‘volser’ parameter
can be the A-side or the B-side volser. When a volser of a
volume with one side is specified, an error
ENODOUBLESIDE error is returns.
The sideinfo[0] parameter gives the attachment of the A-side,
and sideinfo[1] gives the attachment of the B-side.
The media type for the volser in the AMS configuration must
be Optical disk (O0 or O1). Refer to Figure 4-60 on page 4-71.
/* Display volumes reserved for a drive*/
int rc, i, num;
char *Drive = "Drive1";
struct aci_voltodrive_entry
*drive_inf[ACI_MAX_RANGES];
rc = aci_getvolsertodrive( Drive, num, drive_inf);
if( rc )
{
aci_perror( "Command failed: " );
}
else
for (i = 0; i < ACI_MAX_RANGES; i++)
{
if ( *drive_inf[i]->volser == '\0' )
break;
printf( "drive:%s Volser Range%d\n",
drive_inf[i]->Drive,
drive_inf[i]->VolserRange );
}
int aci_getVolserToSide (char *volser,
struct aci_sideinfo
*sideinfo[ACI_SIDE_NUMBER])