API Guide
2-1050 API Functions 601355 Rev A
22 VST_COMMAND_HANDLE cmd;
23
24 /* get parameters from user */
25 printf(“*** Reprioritize parameters
***\n” );
26 printf(“Enter Request ID ==> “ );
27 req = (VST_REQUEST_ID)
atol(gets(input));
28 printf(“Enter Command Request Type
==> “ );
29 c = (VST_REQUEST_TYPE)
atol(gets(input));
30 printf(“Enter New Priority ==> “ );
31 p = (VST_PRIORITY)
atoi(gets(input));
32 /* create the command handle */
33 /* Note that the command handle is
not */
34 /* destoyed in this routine, but in
*/
35 /* vst_dispatch when final status is
received. */
36 cmd = VS_Command_Create();
37 if (cmd != (VST_COMMAND_HANDLE )NULL)
38 {
39 /* Send the command to the VolServ
software. */
40 /* Note that status is not
processed here. */
41 /* Instead, it is processed in the
*/
42 /* vst_dispatch routine. Also,
note that */
43 /* default values such as timeout
*/
44 /* value retry limit and priority
are set as */
45 /* default parameters. */
46 rc = VSCMD_Reprioritize(cmd,
47 VSID_REQUEST_ID, req,