API Guide
601355 Rev A Mount Example C-5
Mount Example
64 if ( (cmdh = VS_Command_Create ())
!=
(VST_COMMAND_HANDLE) NULL )
65 {
66 /* check to see if VolServ s/w is
available */
67 if ( ! VSCMD_Ping ( cmdh ) )
68 {
69 printf ( "VolServ system is
not available\n"
);
70 exit ( 1 );
71 }
72
73 /*******************************
********/
74 /* Send the Mount request.
*/
75 /* The default API mode is
synchronous. */
76 /* Therefore, wait for status
until the */
77 /* command is complete or until
it */
78 /* times-out waiting for status.
*/
79 /* Set the timeout for three
minutes and */
80 /* the retry to two so that the
total time */
81 /* to wait is nine minutes.
*/
82 /* Also,register a dispatch
routine to */
83 /* catch mount intermediate
status. */
84 /*******************************
********/
85 if ( VSCMD_Mount ( cmdh,