#include <sys/statvfs.h>
sys/statvfs.h
sys/statvfs.h
structstatvfs
Following structure is used as a statvfs/fstatvfs function parameter
| unsigned long | f_bsize | File system block size |
| unsigned long | f_frsize | Fundamental file system block size |
| fsblkcnt_t | f_blocks | Blocks on FS in units of f_frsize |
| fsblkcnt_t | f_bfree | Free blocks |
| fsblkcnt_t | f_bavail | Blocks available to non-root |
| fsfilcnt_t | f_files | Total inodes |
| fsfilcnt_t | f_ffree | Free inodes |
| fsfilcnt_t | f_favail | Free inodes for non-root |
| unsigned long | f_fsid | Filesystem ID |
| unsigned long | f_flag | Bit mask of values |
| unsigned long | f_namemax | Max file name length |
functionfstatvfs
int fstatvfs(int, struct statvfs *)
man page · July 13, 2002
fstatvfs(3) — retrieve file system informationfunctionstatvfs
int statvfs(const char * __restrict, struct statvfs * __restrict)
man page · July 13, 2002
statvfs(3) — retrieve file system information