diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2023-07-08 22:01:29 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-07-15 15:40:04 +0200 |
commit | c3f43ba17e68e5d7599b8c7e31b61d069f4d7639 (patch) | |
tree | 1c5deded02b755b5eb2cb0dc43e4a87162612aaf | |
parent | c6a101c1c63d9ef70a2536495e5768d48bb525aa (diff) |
statvfs.3: note f_favail = f_ffree on Linux
Quoting myself from #musl:
01:59:40 hm, I think this was just invented for symmetry with bfree/bavail
02:00:46 FFS has minfree for space but nothing equivalent for inodes
02:32:31 (this is mirrored in ext4;
a global grep over DragonFlyBSD and the illumos gate
showed just NFSv3 forwarding from the server;
OpenBSD always sets it to the same thing as f_ffree;
oddly, NetBSD /does/ calculate it differently
for LFS and FFS but due to queued writes or
w/e not because of root reservation;
and as expected a lot of "/* what to put in here? */"
and "// XXX same??")
Link: https://lore.kernel.org/linux-man/f54kudgblgk643u32tb6at4cd3kkzha6hslahv24szs4raroaz@ogivjbfdaqtb/t/#u
Cc: Tom Schwindl <schwindl@posteo.de>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man3/statvfs.3 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man3/statvfs.3 b/man3/statvfs.3 index b1f0e7545..f15aa7a3e 100644 --- a/man3/statvfs.3 +++ b/man3/statvfs.3 @@ -227,6 +227,14 @@ fields returned by a call to .BR statvfs () with the argument .IR path . +.PP +Under Linux, +.I f_favail +is always the same as +.IR f_ffree , +and there's no way for a filesystem to report otherwise. +This is not an issue, +since no filesystems with an inode root reservation exist. .SH STANDARDS POSIX.1-2008. .SH HISTORY |