| Main index | Section 3 | Options |
#include <sys/statvfs.h>
The statvfs structure contains the following members:
| f_namemax | The maximum length in bytes of a file name on this file system. Applications should use pathconf(2) instead. |
| f_fsid | Not meaningful in this implementation. |
| f_frsize | The size in bytes of the minimum unit of allocation on this file system. (This corresponds to the f_bsize member of struct statfs.) |
| f_bsize | The preferred length of I/O requests for files on this file system. (Corresponds to the f_iosize member of struct statfs.) |
| f_flag | Flags describing mount options for this file system; see below. |
In addition, there are three members of type fsfilcnt_t, which represent counts of file serial numbers ( i.e., inodes); these are named f_files, f_favail, and f_ffree, and represent the number of file serial numbers which exist in total, are available to unprivileged processes, and are available to privileged processes, respectively. Likewise, the members f_blocks, f_bavail, and f_bfree (all of type fsblkcnt_t) represent the respective allocation-block counts.
There are two flags defined for the f_flag member:
| ST_RDONLY | The file system is mounted read-only. |
| ST_NOSUID | The semantics of the S_ISUID and S_ISGID file mode bits are not supported by, or are disabled on, this file system. |
| [EOVERFLOW] | |
| One or more of the file system statistics has a value which cannot be represented by the data types used in struct statvfs. | |
| STATVFS (3) | July 13, 2002 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Never write it in C if you can do it in `awk'; Never do it in `awk' if `sed' can handle it; Never use `sed' when `tr' can do the job; Never invoke `tr' when `cat' is sufficient; Avoid using `cat' whenever possible. |
” |
| — Taylor's Laws of Programming | ||