API Guide
601355 Rev A API Functions 2-853
Functions
23 VST_COUNT err;
24 VST_COMMAND_HANDLE cmd;
25
26 /* get parameters from user */
27 printf(“*** Dismount parameters
***\n” );
28 printf(“Enter Media ID ==> “ );
29 gets( media );
30 printf(“Enter Drive ID ==> “ );
31 drive = atoi(gets(input));
32 printf(“Enter Lock ID ==> “ );
33 lock = atol(gets(input));
34 printf(“Enter Usage Time ==> “ );
35 time = atol(gets(input));
36 printf(“Enter Error Count ==> “ );
37 err = atoi(gets(input));
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_Dismount(cmd,
53 VSID_DRIVE_ID,
drive,