z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


statfs

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-statfs--name--stem------------------------------------------><

Function

statfs invokes the statfs callable service to obtain status information about a specified file system.

Parameters

name
The name of the file system to be mounted, specified as the name of an HFS data set. You must specify the HFS data set name as a fully qualified name in uppercase letters. Do not enclose the data set name in single quotes.
stem
The name of a stem variable used to return the information. Upon return, stem.0 contains the number of variables returned. You can use the predefined variables beginning with STFS_ or their equivalent numeric values to access the status values they represent. (See REXX predefined variables for the numeric values.) For example, stem.stfs_avail accesses the number of blocks available in the file system.
Variable Description
STFS_AVAIL Space available to unprivileged users in block-size units.
STFS_BFREE Total number of free blocks.
STFS_BLOCKSIZE Block size.
STFS_FAVAIL Number of free file nodes available to unprivileged users.
STFS_FFREE Total number of free file nodes.
STFS_FILES Total number of file nodes in the file system.
STFS_FRSIZE Fundamental file system block size.
STFS_FSID File system ID set by the logical file system.
STFS_INUSE Allocated space in block-size units.
STFS_INVARSEC Number of seconds the file system will remain unchanged.
STFS_NAMEMAX Maximum length of file name.
STFS_NOSEC Mount data set with no security bit.
STFS_NOSUID SETUID and SETGID are not supported.
STFS_RDONLY File system is read-only.
STFS_TOTAL Total space in block-size units.

Example

In the following example, assume that fsname was assigned a value earlier in the exec:
"statfs (fsname) st."

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014