Returns virtual file system statistics.
int vfs_stafs (vfsp, stafsp, crp) struct vfs *vfsp; struct statfs *stafsp; struct ucred *crp;
vfsp | Points to the vfs structure being queried. This structure is defined in the /usr/include/sys/vfs.h file. |
stafsp | Points to a statfs structure. This structure is defined in the /usr/include/sys/statfs.h file. |
crp | Points to the cred structure. This structure contains data that the file system can use to validate access permission. |
The vfs_stafs entry point is called by the logical file system to obtain file system characteristics. Upon return, the vfs_statfs entry point has filled in the following fields of the statfs structure:
Fields for which a vfs structure has no values are set to 0.
The vfs_statfs entry point can be called from the process environment only.
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.
The statfs subroutine.
Virtual File System Overview, Virtual File System Kernel Extensions Overview, Understanding Data Structures and Header Files for Virtual File Systems, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.
List of Virtual File System Operations.