API Guide
C-4 Mount Example 601355 Rev A
32 /* the command handle for the Mount
request */
33 VST_COMMAND_HANDLE cmdh;
34
35 /* the status handle for the Mount
request */
36 VST_STATUS_HANDLE stath;
37
38 /* the error handle for the Mount
request */
39 VST_ERROR_HANDLE errh;
40
41 /* the error object code for the
Mount request */
42 VST_ERROR_OBJCODE errobj;
43
44 /* the numeric error code for the
Mount request */
45 VST_ERROR_NUMCODE errnum;
46
47 /* check for the proper number of
arguments */
48 if ( argc != 3 )
49 {
50 printf ("usage: mount
<mediaclass> <drivepool>\n");
51 exit ( 1 );
52 }
53
54 /* copy the MediaClass name and the
drive pool name */
55 strcpy ( mediaclass, argv[1] );
56 strcpy ( drivepool, argv[2] );
57
58 /* initilize the VolServ API */
59 if ( VS_Initialize ( VOLSERV_HOST, 0,
10 ) )
60 {
61
62 /* create a command handle to hold
the ping */
63 /* and mount request */