Aci_getvolsertodrive, Aci_getvolsertodrive -68, Figure 4-55 – ADIC Server User Manual

Page 110: Figure 4-56

Advertising
background image

4-68

DAS ACI Functions

601626-B

Figure 4-55

Example of the aci_foreign Function.

aci_getvolsertodrive

The aci_getvolsertodrive function gets the configured relation
between the specified drive and the volser. See Figure 4-56.

Figure 4-56

aci_getvolsertodrive Function Call

This call returns the configured relation between the specified
drive and volsers. If ‘Drive’ is the Null String, the call returns
the relation of all drives that are configured. The response is
returned in InfoVolserToDrive, an array of pointers to an
aci_voltodrive_entry structure. Refer to
Figure 4-57 on page 4-69.

/* Add foreign media to DAS catalog */

int rc = 0;

enum aci_media type = ACI_3590;

char *volser = "FOR001";

char *coord = "E301010310";

short pos = 0;

if ((rc = aci_foreign(ACI_ADD, volser, type,

coord, pos )))

{

aci_perror("Foreign media location failed: ");

{

else

{

printf("Foreign volser %s added.\n", volser);

}

#include "aci.h"

int aci_getvolsertodrive ( char *Drive,int num

struct aci_voltodrive_entry

*Idrive_inf[ACI_DRIVE_NUMBERS] )

Advertising