API Guide
601355 Rev A API Functions 2-467
Functions
92 /* query all archives */
93 rc = VSCMD_ArchiveQuery(cmd,
94 VSID_QRY_OPTION, queryopt,
95 VSID_ARCHIVE_QRY_OPTION,
arcqueryopt,
96 VSID_ENDFIELD);
97 }
98 else
99 {
100 /* query a specific archive */
101 rc = VSCMD_ArchiveQuery(cmd,
102 VSID_QRY_OPTION, queryopt,
103 VSID_ARCHIVE_QRY_OPTION,
arcqueryopt,
104 VSID_ARCHIVE_NAME, archive,
105 VSID_ENDFIELD);
106 }
107 }
108 return ( rc );
109}
Notes The API must be initialized with a call to VS_Initialize
before this function can be executed.
The total length of time the API software waits for a command
status in synchronous mode from VolServ is
(VSID_RETRY_LIMIT plus 1) multiplied by
VSID_TIMEOUT_VALUE.
If the VSID_ENTERPRISE_ID parameter is set to any value
other than zero, the API cannot receive status for this request.
When the API software is operating in asynchronous mode,
client software must call VS_Select to receive intermediate
and final status on command requests submitted through the
API interface to the VolServ system.
VolServ generates intermediate status in response to an Archiv e
Query request if: