API Guide
601355 Rev A API Functions 2-707
Functions
22 VST_DRIVE_POOL_NAME dp;
23 int drivecount;
24 VST_COMMAND_HANDLE cmd;
25
26 printf(“\nEnter Drive Pool Name
==>”);
27 gets( dp );
28 printf(“\nEnter drive exclusion
list\n”);
29 count =
vst_getdrivelist(excllist,
VST_MAX_ITEMS);
30 printf(“Enter number of drives to
lock ==> “);
31 drivecount = atoi(gets(input));
32
33 /* create the command handle */
34 /* Note that the command handle is
not */
35 /* destroyed in this routine, but in
*/
36 /* vst_dispatch when final status is
received. */
37 cmd = VS_Command_Create();
38 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
39 {
40 /* Send the command to the VolServ
software. */
41 /* Note that status is not
processed here. */
42 /* Instead, it is processed in the
*/
43 /* vst_dispatch routine. Also,
note that */
44 /* default values such as
timeout,*/
45 /* value retry limit and priority
are set as */
46 /* default parameters. */
47 rc = VSCMD_Lock(cmd,
48 VSID_DRIVEPOOL_NAME, dp,