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@xxxxxxxxxxxxx> --- misc-utils/findmnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index db40323..853fae0 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); -- 1.7.11.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html