A SERVICE OF

logo

API Guide
601355 Rev A Mount Example C-13
Mount Example
239
/*******************************
**************/
240 /* Get status type (intermediate or
final) */
241 /* and wait reason (if any exists).
*/
242
/*******************************
**************/
243 VS_Status_GetFields ( stath,
244 VSID_STATUS_TYPE,
&stattype,
245 VSID_WAIT_REASON,
&wait,
246 VSID_ENDFIELD );
247
248
/*******************************
**************/
249 /* If intermediate status, print
message to */
250 /* user. If final status, ignore it.
*/
251
/*******************************
**************/
252 if ( stattype ==
VSE_STATUSTYPE_INTERMEDIATE )
253 {
254 /* print message depending upon
wait reason */
255 switch ( wait )
256 {
257 case VSE_WAIT_LOCKED_DRIVE:
258 printf ( "Mount waiting on
locked drive\n" );
259 break;
260 case VSE_WAIT_BUSY_DRIVE:
261 printf ( "Mount waiting on
busy drive\n");
262 break;