From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 20 22:10:03 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD8A7106564A for ; Sun, 20 Mar 2011 22:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5E088FC12 for ; Sun, 20 Mar 2011 22:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2KMA3XO053484 for ; Sun, 20 Mar 2011 22:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2KMA3dS053483; Sun, 20 Mar 2011 22:10:03 GMT (envelope-from gnats) Date: Sun, 20 Mar 2011 22:10:03 GMT Message-Id: <201103202210.p2KMA3dS053483@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexander Best Cc: Subject: Re: bin/146205: df(1) fails to display total space on a 100PB filesystem correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 22:10:03 -0000 The following reply was made to PR bin/146205; it has been noted by GNATS. From: Alexander Best To: bug-followup@freebsd.org Cc: Subject: Re: bin/146205: df(1) fails to display total space on a 100PB filesystem correctly Date: Sun, 20 Mar 2011 22:07:22 +0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline verified! defenately a problem with humanize_number(3). here's a testcase. cheers. alex -- a13x --LZvS9be/3tNcYl/X Content-Type: text/x-csrc; charset=us-ascii Content-Disposition: attachment; filename="humanize_number.c" #include #include int main(int argc, char** argv) { char buf[6]; int flags; int64_t bytes = 107692009979824 * 1024; flags = HN_B | HN_NOSPACE | HN_DECIMAL; humanize_number(buf, sizeof(buf) - (bytes < 0 ? 0 : 1), bytes, "", HN_AUTOSCALE, flags); (void)printf(" %6s\n", buf); return 0; } --LZvS9be/3tNcYl/X--