The following code obtains information about the file
system containing the file identified by pathname.
For the callable service, see
statvfs (BPX1STV, BPX4STV) — Get the file system status.
For the data structure, see
BPXYSSTF — Map response structure for file system status. AMODE 31 callers
use
BPX1STV (statvfs) example.
MVC BUFFERA(8),=CL8'/usr/inv'
MVC BUFLENA,=F'8'
SPACE ,
CALL BPX4STV, Get file system status +
(BUFLENA, Input: Pathname length +
BUFFERA, Input: Pathname +
SSTFL, Input: Length of BPXYSSTF +
SSTF, Buffer, BPXYSSTF +
RETVAL, Return value: -1 or length status +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------