From owner-freebsd-bugs@FreeBSD.ORG Sat May 1 00:00:20 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D045B1065675 for ; Sat, 1 May 2010 00:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id AEB298FC13 for ; Sat, 1 May 2010 00:00:20 +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 o4100KXv080704 for ; Sat, 1 May 2010 00:00:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4100KU0080703; Sat, 1 May 2010 00:00:20 GMT (envelope-from gnats) Resent-Date: Sat, 1 May 2010 00:00:20 GMT Resent-Message-Id: <201005010000.o4100KU0080703@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Cran Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96C5F10656A3 for ; Fri, 30 Apr 2010 23:57:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 86B4E8FC1C for ; Fri, 30 Apr 2010 23:57:41 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3UNvfE8002381 for ; Fri, 30 Apr 2010 23:57:41 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3UNvfON002380; Fri, 30 Apr 2010 23:57:41 GMT (envelope-from nobody) Message-Id: <201004302357.o3UNvfON002380@www.freebsd.org> Date: Fri, 30 Apr 2010 23:57:41 GMT From: Bruce Cran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: 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 List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 00:00:20 -0000 >Number: 146205 >Category: bin >Synopsis: df(1) fails to display total space on a 100PB filesystem correctly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 01 00:00:20 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 9.0-CURRENT >Organization: >Environment: FreeBSD core.draftnet 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r207449: Fri Apr 30 22:16:52 BST 2010 brucec@core.draftnet:/usr/obj/usr/src/head/sys/CORE amd64 >Description: df(1) correctly displays the number of 1K blocks in a 100PB filesystem, but displays wrong results when run with the "-h" flag: > df tank Filesystem 1K-blocks Used Avail Capacity Mounted on tank 107692009979824 19 107692009979805 0% /tank > df -h tank Filesystem Size Used Avail Capacity Mounted on tank -741 19K -741 0% /tank I suspect this is due to bugs in humanize_number from libdisk. >How-To-Repeat: On a ZFS filesystem, run "truncate -s100P mdfile && mdconfig -a -f mdfile" then create a pool on the md device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: