netware_vol_info

Returns information about a NetWare volume.

Library:LibC
Classification:Novell
Service:NetWare Platform

Syntax

  #include <monitor.h> 
   
  int netware_vol_info (
     struct volume_info   *info,
     int                  *sequence);
  

Parameters

info

(OUT) Returns information about a volume.

sequence

(IN/OUT) Points to where the volume enumeration should begin. To view information about all volumes, pass zero the first time the function is called and do not modify the returned value on subsequent calls.To return information about a specific volume, set sequence to the volume's number.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code:

Decimal

Hex

Constant

Description

66

0x42

ENOSYS

The function cannot be exported (error from NetWare ExportPublicSymbol).

77

0x4D

ESRCH

The volume does not exist.

Remarks

The netware_vol_info function can be used iteratively, so that the information for the next volume is returned each time the function is called. When all possible volumes have been found, the function returns ESRCH.

This function returns information about all defined, mounted volumes.

The sys volume is always volume 0. Normal volume numbers increment from 0 to 255. Clustered volume numbers begin at 255 and then decrement (255, 254, ...).

NOTE:To obtain information not available in the volume_info structure, use Media Manager for NetWare 5.x and 6.x from Storage Architecture Components (including Media Manager and NWPA).

See Also

Example

The following example shows how to list the names of the NetWare volumes for the current server. It also is an example of how to use an iterative information call.

  #include <stdio.h>
  #include <monitor.h>
  
  {
     int                 sequence;
     struct volume_info  volInfo;
  
     sequence = 0;
  
     while (!netware_vol_info(&volInfo, &sequence))
       printf("%02d: %s\n", volInfo.which, volInfo.name);
  
  }