API Guide
2-656 API Functions 601355 Rev A
21 VST_DRIVE_ID temp_drive_id;
22 VST_COMP_STATE temp_state;
23 VST_COMP_STATE
statelist[VST_MAX_ITEMS];
24 VST_DRIVE_POOL_NAME poolname;
25 int i;
26 VST_COMMAND_HANDLE cmd;
27 int varyopt;
28 int stateopt;
29
30 /* get parameters from user */
31 printf(“*** Drive Vary parameters
***\n” );
32 printf(“0) Vary by drive list , 1)
Vary by drive pool 2) Vary by
drive ID ==> “ );
33 varyopt = atoi(gets(input));
34
35 if (varyopt == 0)
36 {
37 /* vary by drive list */
38 /* get the list */
39 count =
vst_getdrivelist(drivelist,
VST_MAX_ITEMS);
40 VSCMD_DriveVary_SetDefaults(
41 VSID_DRIVE_ID_LIST,
count,drivelist,
42 VSID_ENDFIELD);
43 }
44 else if (varyopt == 1)
45 {
46 /* vary by drive pool */
47
return(vst_drivevary_pool_execute
());
48 }
49 else
50 {
51 /* vary a single drive */
52 printf(“\nEnter Drive ID ==> “);