The fstatvfs callable service obtains status information about a file system. The file system is specified by a file descriptor that refers to a file from the desired file system.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1FTV): | 31-bit |
AMODE (BPX4FTV): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4FTV with the same parameters.
The name of a fullword that contains the file descriptor for the file.
The name of a fullword that contains the length of the area to which the service returns status information.
The name of an area of length Status_area_length to which the service returns the status information for the file system. The BPXYSSTF macro maps this area. For information on this macro, see BPXYSSTF — Map response structure for file system status.
The name of a fullword in which the fstatvfs service returns the length of the status written to the Status_area if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EAGAIN | Information is temporarily unavailable. This can occur because the mount process for the file system is incomplete. |
EBADF | The File_descriptor parameter does not specify a valid, open file descriptor. |
EINVAL | Parameter error; for example, Status_area_length is too small. The following reason code can accompany the return code: JRBuffTooSmall. |
The name of a fullword where the fstatvfs service stores the reason code. The fstatvfs service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
There are no restrictions on the use of the fstatvfs service.
For an example using this callable service, see BPX1FTV (fstatvfs) example.