API Guide
2-940 API Functions 601355 Rev A
28 printf(“\nEnter Drive Pool to modify
==>”);
29 gets( dp );
30 count = vst_getdrivelist(drivelist,
VST_MAX_ITEMS);
31 printf(“\nPlease select the action to
take on each drive\n”);
32 for (i = 0; i < count; i++)
33 {
34 printf(“drive %d: (1) add to pool,
(2) delete: “, drivelist[i]);
35 optionlist[i] =
(VST_POOL_DRIVE_OPTION)
atoi(gets(input));
36 }
37
38 /* create the command handle */
39 /* Note that the command handle is
not */
40 /* destoyed 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 rc = VSCMD_ModifyPool(cmd,
53 VSID_DRIVEPOOL_NAME, dp,