4-54 DAS ACI Functions
601626-B
Figure 4-43 Example of the aci_eject2_complete Function
aci_eject3_complete
The aci_eject3_complete function ejects a range of volumes
from the AML, and deletes the home coordinate. See
Figure 4-44.
Figure 4-44 aci_eject3_complete Function Call
/* Eject volume complete from AML system*/
int rc, i, pnActualCount;
char *volser_range = "000815 - 004711";
char *eject_area = "E02"
struct aci_ei_info ei_info[ACI_EI_MAX_RANGE] ;
rc = aci_eject2_complete( eject_area, volser_range,
ACI_3590, & pActualCount, &ei_info );
if( rec )
{
aci_perror( "Command failed: " );
}
else
{
printf("Volume ejects request successful\n" );
for (i = 0; i < ACI_EI_MAX_RANGE; i++)
{
if ( *ei_info[i]->volser == '\0' )
break;
printf( "volser:%s media type:%s Error:%d\n",
ei_info[i]->volser,
ei_info[i]->media_type,
ei_info[i]->errcode );
}
}
#include "aci.h"
int aci_eject3_complete( char *eject_area,
char *volser_range,
enum aci_media type,
int *pnActualCount,
struct aci_ei_info *psteiInfo)