API Guide
2-868 API Functions 601355 Rev A
33 gets( drivepool);
34 }
35 printf(“\n1) DriveList , 2) DriveList
Details ==> “ );
36 querylistopt = atoi(gets(input));
37
38 /* create the command handle */
39 /* Note that the command handle is
not */
40 /* destroyed in this routine, but in
*/
41 /* vst_dispatch when final status is
received. */
42 cmd = VS_Command_Create();
43 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
44 {
45 /* Send the command to the VolServ
software. */
46 /* Note that status is not
processed here. */
47 /* Instead, it is processed in the
*/
48 /* vst_dispatch routine. Also,
note that */
49 /* default values such as
timeout,*/
50 /* value retry limit and priority
are set as */
51 /* default parameters. */
52 if (queryopt == 0)
53 {
54 /* query a single drive pool */
55 rc = VSCMD_DrivePoolQuery(cmd,
56 VSID_QRY_OPTION,
queryopt,
57 VSID_POOL_QRY_OPT,
querylistopt,
58 VSID_DRIVEPOOL_NAME,
drivepool,
59 VSID_ENDFIELD);
60 }