From: Denys Vlasenko Date: Fri, 14 Dec 2012 16:14:11 +0000 (+0100) Subject: du: document incompatibility with standard tool X-Git-Tag: 1_21_0~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=393c395ca50d0b95003d5adfc6d1ca95763cc732;p=oweals%2Fbusybox.git du: document incompatibility with standard tool Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/du.c b/coreutils/du.c index 19a0319f1..9c6ff8800 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. */