From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 31 20:40:12 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D917D106566B; Thu, 31 Mar 2011 20:40:12 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 719888FC18; Thu, 31 Mar 2011 20:40:12 +0000 (UTC) Received: by ywf9 with SMTP id 9so1323775ywf.13 for ; Thu, 31 Mar 2011 13:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=FeSSJ7ZwL3HQDX6cocSevhL77wfHKTXmqXhEz4wQM7k=; b=ilNKKdrBWjjz7cTKb8Ef6T4UbWyAX8TCtkwn45mgZ9ks8Lpa81Yr0NnAGg9JVamtd4 iHjSHxhY4N9TZ3SinUFzcgThk5+PbP7w+GDKIdrL30d8pp3ZNT4nOXJ0I9dSsW6Ho3sT pL7l6uDYs9RhUsP05H+gXOw8WFEYtOoOccyiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ls4J2mwINCWVkacK6z8Z4DwDKy67wDdkwAn8Eqh2nl+0MtIjNJxqedSYtPn/iTrz24 rqvGS6ZpDpDhVj13MytkE1Q5w3m1YuvPcaaiQUlQUYnqhFruRNGdaOZHwBZiQ12ENSyd jo5/Pmc5F0C4GW7HStfD/DNg7hb7AWGH1LGOo= Received: by 10.150.242.2 with SMTP id p2mr3468295ybh.241.1301604011813; Thu, 31 Mar 2011 13:40:11 -0700 (PDT) Received: from DataIX.net ([99.19.44.236]) by mx.google.com with ESMTPS id 42sm472618yhl.68.2011.03.31.13.40.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Mar 2011 13:40:10 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p2VKe6tv035869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Mar 2011 16:40:07 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p2VKe5U5035868; Thu, 31 Mar 2011 16:40:05 -0400 (EDT) (envelope-from jhell) Date: Thu, 31 Mar 2011 16:40:05 -0400 From: jhell To: Alexander Best Message-ID: <20110331204005.GA33239@disbatch.dataix.local> References: <20110325002115.GA323@freebsd.org> <20110325041905.00006711@unknown> <20110325101304.GA56260@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <20110325101304.GA56260@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Bruce Cran , freebsd-hackers@freebsd.org Subject: Re: Switching to [KMGTPE]i prefixes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2011 20:40:13 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 25, 2011 at 10:13:04AM +0000, Alexander Best wrote: > On Fri Mar 25 11, Bruce Cran wrote: > > On Fri, 25 Mar 2011 00:21:15 +0000 > > Alexander Best wrote: > >=20 > > > i hacked up humanized_number(3) a bit in order to produce the > > > following df(1) output: > > > [...] > > > 4.2Gi 4.2Gi 0B 100% 0 0 100% /media/dvd > >=20 > > I don't know if it's correct, but Snow Leopard uses "Bi" for bytes. >=20 > hmmm...i'm wondering why they do that. there's no reason for that, because > 1 bytes is 8 bit no matter if you use a power of one or a power of ten. >=20 Given the output above it would only be safe to assume that you are refering to a BLOCKSIZE=3DK when denoting size as "Gi". It would be more proper if this was to denote the size as "GiB" so the end result can be determined whether or not it is really "Gib". "[X]i" in it self does not signify the size of the data by which the result was calculated but only that the result has been calculated by 1024^N and seems to have been a mislead representation by other OS's. So whether were using BLOCKSIZE of "b B K M G T P..." can we adjust this so it displays the increment correctly please ? http://en.wikipedia.org/wiki/Byte http://en.wikipedia.org/wiki/Megabyte http://en.wikipedia.org/wiki/Gigabyte [...] http://en.wikipedia.org/wiki/Template:Quantities_of_bits http://en.wikipedia.org/wiki/Orders_of_magnitude_%28data%29 --=20 Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN --azLHFNyN32YCQGCU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89D8547E iQEcBAEBAgAGBQJNlOakAAoJEJBXh4mJ2FR+WcMH/103iGvV/3spi4y+4DtkprWO keXgpZah2FlF4oL3aX7QnwVRH7WpfrJ5kXTw2ERW2j4jIApM4KQDY3QbYKcLtZ0Z iQJj2kJe4i7csGzfZ2037c8jZH+DKpP1vOHP4xb/qD4arpApgOXvow8Zlu7mhYxB /REawq8b+BHDkzTnkGPSHY/NWbeUNmVSeaopxMG628KJYbuGyFuAwbeOX5N0dlIC leLNziK8swI9Q0QCwv+z/s+9JvZT2oY8vD8PKLabu7r6aBrApBVIEQaiwOLNXrO2 rGsyTjhbmgky3LI0WwnpORSXNk551PzlmF8pvYBq6HG4fmnB2P5TEHVnPGFIep0= =FebK -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--