diff options
author | Dave Reisner | 2012-08-20 12:06:17 +0200 |
---|---|---|
committer | Karel Zak | 2012-09-04 12:43:28 +0200 |
commit | ed6c8c1b61bf87e0fa6d78da405a052a0e46cb10 (patch) | |
tree | 14a2a4f18e1d870d835a135d9e96c17717597789 /misc-utils/findmnt.c | |
parent | su: cleanup man page (diff) | |
download | kernel-qcow2-util-linux-ed6c8c1b61bf87e0fa6d78da405a052a0e46cb10.tar.gz kernel-qcow2-util-linux-ed6c8c1b61bf87e0fa6d78da405a052a0e46cb10.tar.xz kernel-qcow2-util-linux-ed6c8c1b61bf87e0fa6d78da405a052a0e46cb10.zip |
findmnt: use st.st_bavail for available column
This matches more closely with what 'df -h' reports as space available.
Any remaining discrepancy between these 2 tools is a result of precision
and choices in rounding.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'misc-utils/findmnt.c')
-rw-r--r-- | misc-utils/findmnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index db40323e3..853fae071 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -374,7 +374,7 @@ static const char *get_vfs_attr(struct libmnt_fs *fs, int sizetype) vfs_attr = buf.f_frsize * buf.f_blocks; break; case COL_AVAIL: - vfs_attr = buf.f_frsize * buf.f_bfree; + vfs_attr = buf.f_frsize * buf.f_bavail; break; case COL_USED: vfs_attr = buf.f_frsize * (buf.f_blocks - buf.f_bfree); |