Figure 4-70 – ADIC Server User Manual

Page 122

Advertising
background image

4-80

DAS ACI Functions

601626-B

EDATABASE

ENOTSUPPHCMD

EAREAEMPTY

ENOPOOL

EBARCODE

EAREAFULL

See Figure 4-70 for an example of the aci_insert2 function.

Figure 4-70

Example of the aci_insert2 Function

/* insert clean volume in the AML system*/

int res, i, pnActualCount;

char *cleanPoolname = "CLP01";

char *areaname = "I02"

struct aci_ei_info *pstEiInfo[ACI_EI_MAX_RANGE];

res = aci_insert2( "-c", areaname, cleanPoolname,

&pnActualCount, pstEiInfo;

if( rec )

{

aci_perror( "Command failed: " );

}

else

{

printf("Volume insert 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 );

}

}

Advertising