Aci_insert2, Aci_insert2 -77, Figure 4-67 – ADIC Server User Manual

Page 119: Figure 4-68

Advertising
background image

aci_insert2

4-77

21 Dec 2001

EBARCODE

EAREAFULL

Refer to Figure 4-67 on page 4-77 for an example of the
aci_insert function.

Figure 4-67

Example of the aci_insert Function

aci_insert2

The aci_insert2 function inserts volumes, including clean
media, into the AML. See Figure 4-68

Figure 4-68

aci_insert2 Function Call

The cartridges which are located in the Insert area of the AML
and registered by the AMU (automatically inventoried after
closing the area), will be inserted.

/* Insert media into AML */

int rc, i;

enum aci_media type = ACI_3590;

char *area_name = "I01";

char *volser_ranges[ACI_MAX_RANGES];

rc = aci_insert(area_name, volser_ranges, &type);

if( rc )

{

aci_perror("Command failed: ");

}

else

{

for (i = 0; i < ACI_MAX_RANGES; i++)

if (*volser_ranges[i] == '\0')

break;

else

printf("%s\n", volser_ranges[i]);

}

#include "aci.h"

int aci_insert2( char *insertopt,

char *areaname,

char *cleanPoolname,

int *pnActualCount,

struct aci_ei_info *pstEiInfo)

Advertising