API Guide
1-26 Getting Started 601355 Rev A
These two commands perform the same function as the
previous example. The VSCMD_Mount_SetDefaults function
sets command-specific defaults for all future Mount commands
within this process. When the Mount command is issued, the
parameters that are not specified are defaulted to the current
command-specific defaults. The defaults specified by
VSCMD_Mount_SetDefaults are valid only for Mount
commands.
Command Status
After each status received from VolServ, the pertinent status
fields are stored in a status handle within the command handle.
The client can get the status handle from the command handle
with the VS_Command_GetFields function. After the status
handle is obtained, any command-specific field associated with
the status can be obtained through the
VS_Status_GetFields function. See to the following
example:
VST_MEDIA_ID mediaid;
VST_DRIVE_ID driveid;
VST_STATUS status;
VST_COMMAND_HANDLE cmd_handle;
VST_STATUS_HANDLE status_handle;
if ( (cmd_handle = VS_Command_Create ())
== (VST_COMMAND_HANDLE) NULL )
{return ( -1 );
}