mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-18 23:42:00 +03:00
* lib/fsusage.c: Fall back to (struct statfs).f_frsize which is available since Linux 2.6. * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define when the member is available so it can be used as a fallback. * doc/posix-functions/statvfs.texi: Mention the hang issue on Linux < 2.6.36.
32 lines
919 B
Plaintext
32 lines
919 B
Plaintext
@node statvfs
|
|
@section @code{statvfs}
|
|
@findex statvfs
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/statvfs.html}
|
|
|
|
Gnulib module: ---
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function is missing on some platforms:
|
|
MacOS X 10.3, OpenBSD 3.8, mingw, MSVC 9.
|
|
@item
|
|
This function can hang if it stats all preceding
|
|
entries in /proc/mounts, and any of those file systems
|
|
are hard-mounted and not available. This affects
|
|
Linux < 2.6.36.
|
|
@item
|
|
On platforms where @code{f_blocks} in @samp{struct statvfs} is a 32-bit
|
|
value, this function may not work correctly on files systems larger than
|
|
4 TiB. The fix is to use the @code{AC_SYS_LARGEFILE} macro. This affects
|
|
glibc/Hurd, HP-UX 11, Solaris.
|
|
@end itemize
|
|
|
|
Gnulib provides a module @code{fsusage} that provides similar information
|
|
as @code{statvfs}.
|