Package: coreutils
Version: 8.5-1
Severity: normal

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

I am doing a long rm -rf to clean out approx. 200GB of old files.
While this is going on in a background job, I run
# while sleep 5; do echo $(date) $(df .)|cut -d ' ' -f 1,10-; done
in the foreground.
When Use% dropped to 67. 998%, the df display changed to 68%.

This, I think, demonstartes that the problem is in the actual calc.,
not in the use of human friendly number display.

HTH

PS, I have several 500GB USB drives and often defer deleting old files until a
time when the delete does not compete for cycles with useful work. Its OK to
ask for test runs of new code.

Wish list item:

Enable correct computation of Use% that is over 100% (because of the 5%
safety buffer that is built in somewhere)



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.49-4   Access control list shared library
ii  libattr1                      1:2.4.44-2 Extended attribute shared library
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information



-- 
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