From: Dave Reisner <d@falconindy.com>
To: Bruce Dubbs <bruce.dubbs@gmail.com>
Cc: util-linux-ng@vger.kernel.org
Subject: Re: findmnt/df discrepancy
Date: Wed, 12 Feb 2014 10:38:06 -0500 [thread overview]
Message-ID: <20140212153806.GB583@rampage> (raw)
In-Reply-To: <52FB9355.3090702@gmail.com>
On Wed, Feb 12, 2014 at 09:29:25AM -0600, Bruce Dubbs wrote:
> I've noticed a discrepancy in percent free between findmnt and df:
>
> $ df -h|grep /tmp
> /dev/sdb5 9.8G 8.3G 967M 90% /tmp
> $ findmnt --df|grep /tmp
> /dev/sdb5 ext4 9.7G 8.3G 967M 85% /tmp
>
> Actually, the discrepancy seems to be df as 8.3/9.8 is 84.7%.
> Can anyone here explain the difference? Should it be submitted to
> coreutils as a bug?
It's the reserved space on the filesystem. On an ext4 FS where the
reserved space is 0%, df and findmnt (mostly) agree:
$ df -h | grep Gluttony
/dev/sdb2 1.8T 701G 1.1T 39% /mnt/Gluttony
$ findmnt --df | grep Gluttony
/dev/sdb2 ext4 1.8T 700.1G 1.1T 39% /mnt/Gluttony
next prev parent reply other threads:[~2014-02-12 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-12 15:29 findmnt/df discrepancy Bruce Dubbs
2014-02-12 15:38 ` Dave Reisner [this message]
2014-02-15 4:02 ` Phillip Susi
2014-02-21 12:09 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140212153806.GB583@rampage \
--to=d@falconindy.com \
--cc=bruce.dubbs@gmail.com \
--cc=util-linux-ng@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.