From: Jim Meyering Date: Mon, 8 Jul 2002 17:15:19 +0000 (+0000) Subject: df now rounds all quantities up, as per POSIX. X-Git-Tag: FILEUTILS-4_1_10~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1882eec679fb01700a491d158fa4dad8efbcc9fe;p=thirdparty%2Fcoreutils.git df now rounds all quantities up, as per POSIX. This fixes a bug where df would report Size < Used. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 3960859bff..b17d18b27e 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7660,6 +7660,7 @@ reports on the filesystem containing each argument @var{file}. Normally the disk space is printed in units of 1024 bytes, but this can be overridden (@pxref{Block size}). +Non-integer quantities are rounded up to the next higher unit. @cindex disk device file @cindex device file, disk @@ -7764,10 +7765,6 @@ one line; a mount device is never put on a line by itself. This means that if the mount device name is more than 20 characters long (e.g., for some network mounts), the columns are misaligned. -@item -Non-integer values are rounded up, instead of being rounded down or -rounded to the nearest integer. - @item The labels in the header output line are changed to conform to @acronym{POSIX}. @end enumerate @@ -7865,6 +7862,7 @@ du [@var{option}]@dots{} [@var{file}]@dots{} With no arguments, @command{du} reports the disk space for the current directory. Normally the disk space is printed in units of 1024 bytes, but this can be overridden (@pxref{Block size}). +Non-integer quantities are rounded up to the next higher unit. The program accepts the following options. Also see @ref{Common options}.