.\"
.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
-.TH STATVFS 3 2003-08-22 "Linux" "Linux Programmer's Manual"
+.TH STATVFS 3 2013-09-26 "Linux" "Linux Programmer's Manual"
.SH NAME
-statvfs, fstatvfs \- get file system statistics
+statvfs, fstatvfs \- get filesystem statistics
.SH SYNOPSIS
.B #include <sys/statvfs.h>
.sp
.SH DESCRIPTION
The function
.BR statvfs ()
-returns information about a mounted file system.
+returns information about a mounted filesystem.
.I path
-is the pathname of any file within the mounted file system.
+is the pathname of any file within the mounted filesystem.
.I buf
is a pointer to a
.I statvfs
.in +4n
.nf
struct statvfs {
- unsigned long f_bsize; /* file system block size */
+ unsigned long f_bsize; /* filesystem block size */
unsigned long f_frsize; /* fragment size */
fsblkcnt_t f_blocks; /* size of fs in f_frsize units */
fsblkcnt_t f_bfree; /* # free blocks */
fsfilcnt_t f_files; /* # inodes */
fsfilcnt_t f_ffree; /* # free inodes */
fsfilcnt_t f_favail; /* # free inodes for unprivileged users */
- unsigned long f_fsid; /* file system ID */
+ unsigned long f_fsid; /* filesystem ID */
unsigned long f_flag; /* mount flags */
unsigned long f_namemax; /* maximum filename length */
};
Bits defined by POSIX are
.TP
.B ST_RDONLY
-Read-only file system.
+Read-only filesystem.
.TP
.B ST_NOSUID
Set-user-ID/set-group-ID bits are ignored by
.BR exec (3).
.LP
It is unspecified whether all members of the returned struct
-have meaningful values on all file systems.
+have meaningful values on all filesystems.
.BR fstatvfs ()
returns the same information about an open file referenced by descriptor
This call was interrupted by a signal.
.TP
.B EIO
-An I/O error occurred while reading from the file system.
+An I/O error occurred while reading from the filesystem.
.TP
.B ELOOP
.RB ( statvfs ())
Insufficient kernel memory was available.
.TP
.B ENOSYS
-The file system does not support this call.
+The filesystem does not support this call.
.TP
.B ENOTDIR
.RB ( statvfs ())
.TP
.B EOVERFLOW
Some values were too large to be represented in the returned struct.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR statvfs ()
+and
+.BR fstatvfs ()
+functions are thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH NOTES
.IR "statvfs(path,buf)" .
.SH SEE ALSO
.BR statfs (2)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.