API Guide
2-680 API Functions 601355 Rev A
53 /* retry limit and priority are
set as */
54 /* default parameters. */
55 rc = VSCMD_Import(cmd,
56 VSID_ARCHIVE_NAME,
archive,
57 VSID_MEDIA_CLASS_NAME,
mediaclass,
58 VSID_BATCH_NAME, batch,
59 VSID_MANUFACTURER, manuf,
60 VSID_MEDIA_ID_LIST, count,
medialist,
61 VSID_ENDFIELD);
62 }
63
64 return ( rc );
65 }
Notes
The API must be initialized with a call to VS_Initialize
before this function can be executed.
VolServ does not generate intermediate status in response to an
Import request.
VSCMD_Import triggers MediaClass callbacks from VolServ.
The VSID_MEDIA_ID_LIST parameter requires that two
arguments be passed instead of one.
If a list of media specified in an Import request contains media
of more than one type, the request fails.
Import is a logical operation. Media must be physically entered
into an archive by an operator before they are available for
general use.
Media identifier values must be unique throughout a VolServ
system. Non-unique names are rejected.