From: Andries Brouwer <aebr@win.tue.nl>
To: "Michał Kudła" <michal.kudla@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2)
Date: Sat, 27 Jan 2007 16:06:32 +0100 [thread overview]
Message-ID: <20070127150632.GA12688@win.tue.nl> (raw)
In-Reply-To: <200701200908.47654.Michal.Kudla@gmail.com>
On Sat, Jan 20, 2007 at 09:08:47AM +0100, Michał Kudła wrote:
> Hello,
> after
> ...
> hdb: max request size: 512KiB
> hdb: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
>
> Should be everywere KiB, MiB, GiB, ... according to IEC 60027-2
You are mistaken. The MB here are actual megabytes (million bytes), not MiB.
Read the code, or do the computation: 488397168*512 = 250059350016.
(Precisely what one wants - the kernel gives the correct size,
just like the disk manufacturers, and there is no discrepancy.
Binary abuse for decimal prefixes is a sloppiness that might be
acceptable for stuff that naturally comes in powers of two.
It is long ago that that was true for disks.)
Andries
next prev parent reply other threads:[~2007-01-27 15:30 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-20 8:08 PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2) Michał Kudła
2007-01-20 10:29 ` David Schwartz
2007-01-20 18:07 ` Leon Woestenberg
2007-01-20 22:54 ` David Schwartz
2007-01-21 0:07 ` Tony Foiani
2007-01-21 21:12 ` Jan Engelhardt
2007-01-22 6:45 ` Tony Foiani
2007-01-22 8:25 ` Roland Kuhn
2007-01-22 15:43 ` Lennart Sorensen
2007-01-21 7:11 ` H. Peter Anvin
2007-01-21 20:03 ` Geert Uytterhoeven
2007-01-21 20:06 ` H. Peter Anvin
2007-01-21 17:04 ` Leon Woestenberg
2007-01-21 22:12 ` David Schwartz
2007-01-22 8:49 ` Benny Amorsen
2007-01-27 15:06 ` Andries Brouwer [this message]
[not found] <7FsPf-51s-9@gated-at.bofh.it>
[not found] ` <7FxlV-3sb-1@gated-at.bofh.it>
[not found] ` <7FyUF-5XD-21@gated-at.bofh.it>
2007-01-21 10:40 ` Bodo Eggert
2007-01-21 11:10 ` Eduard Bloch
2007-01-21 22:08 ` Stefan Richter
2007-01-22 15:53 ` Lennart Sorensen
2007-01-22 16:58 ` Jan Engelhardt
2007-01-22 18:36 ` Alan
2007-01-22 19:24 ` Tony Foiani
2007-01-22 22:26 ` Bodo Eggert
2007-01-22 20:44 ` Lennart Sorensen
2007-01-22 21:17 ` linux-os (Dick Johnson)
2007-01-22 20:43 ` Lennart Sorensen
2007-01-22 21:22 ` Jan Engelhardt
2007-01-21 14:45 ` Benny Amorsen
2007-01-21 15:06 ` Heikki Orsila
2007-01-21 21:27 ` Jan Engelhardt
2007-01-22 1:56 ` Krzysztof Halasa
2007-01-22 10:39 ` Bernd Petrovitsch
2007-01-22 10:48 ` Andreas Schwab
2007-01-23 1:04 ` Krzysztof Halasa
2007-01-23 1:45 ` Jan Engelhardt
2007-01-23 9:23 ` Andreas Schwab
2007-01-23 13:14 ` Krzysztof Halasa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070127150632.GA12688@win.tue.nl \
--to=aebr@win.tue.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.kudla@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox