Paul E Condon wrote:
> I am seeing incorrect %use when displaying data from a 500GB USB
> external drive --
> Example output:
>  /dev/sde1    480040596 310726424 144929512 69% /media/wdp7
> Precise calc. (on HP11C) is Use% = 68.193%
> which should not round upward

Thank you for the report.  But I think this is not a bug in df but is
instead a misunderstanding of how it operates.  Please see this FAQ
entry:

  
http://www.gnu.org/software/coreutils/faq/#df-Size-and-Used-and-Available-do-not-add-up

Is that the issue you are seeing?

In any case, df simply passes along the values reported by the kernel
in the statfs call.  Therefore any actual calculation problems will be
root caused in the kernel and not in the df program.

To see the values that the kernel is returning to df's statfs call
please run the following command and report the contents of the file.

  $ strace -v -e trace=statfs -o /tmp/df.strace.out df /dev/sde1

Bob



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to