[git commit] du: document incompatibility with standard tool
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 14 16:14:11 UTC 2012
commit: http://git.busybox.net/busybox/commit/?id=393c395ca50d0b95003d5adfc6d1ca95763cc732
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/du.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/coreutils/du.c b/coreutils/du.c
index 19a0319..9c6ff88 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -89,6 +89,10 @@ struct globals {
#define INIT_G() do { } while (0)
+/* FIXME? coreutils' du rounds sizes up:
+ * for example, 1025k file is shown as "2" by du -m.
+ * We round to nearest.
+ */
static void print(unsigned long long size, const char *filename)
{
/* TODO - May not want to defer error checking here. */
More information about the busybox-cvs
mailing list