ADIC Server manual Aciview

Models: Server

1 218
Download 218 pages 15.53 Kb
Page 165
Image 165

aci_view

The aci_view function is used to view a database entry for a volume. See Figure 4-114.

#include "aci.h"

int aci_view( char *volser, enum aci_media type,

struct aci_volume_desc *desc )

Figure 4-114aci_view Function Call

Return the database entry for the volume named volser of media type type. The database entry is returned in the aci_volume_desc structure. See Figure 4-115.

For additional information, refer to aci_qvolsrange on page 4-98,and aci_inventory on page 4-81.

struct aci_volume_desc {

char coordinate[ACI_COORD_LEN]; char owner;

char attrib; char type;

char volser[ACI_VOLSER_LEN] char vol_owner;

int use_count; int crash_count;

};

Figure 4-115Volser Information Contained in the aci_volume_desc Structure

The structure returns the AMU archive catalog, which robot owns the volume, a volume attribute of mounted, ejected, occupied, or undefined, and the volser media type. Refer to Table 4-51 on page 4-122.

aci_view 4-123

21 Dec 2001

Page 165
Image 165
ADIC Server manual Aciview