Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 16:40:05 -0400
From:      jhell <jhell@DataIX.net>
To:        Alexander Best <arundel@freebsd.org>
Cc:        Bruce Cran <bruce@cran.org.uk>, freebsd-hackers@freebsd.org
Subject:   Re: Switching to [KMGTPE]i prefixes?
Message-ID:  <20110331204005.GA33239@disbatch.dataix.local>
In-Reply-To: <20110325101304.GA56260@freebsd.org>
References:  <20110325002115.GA323@freebsd.org> <20110325041905.00006711@unknown> <20110325101304.GA56260@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <arundel@freebsd.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110331204005.GA33239>