Re: patch for sd.c: fix MB vs. GB

H. Peter Anvin (hpa@transmeta.com)
28 Dec 1998 22:01:52 GMT


Followup to: <m0zuixK-000vJZC@zamenhof.demon.co.uk>
By author: martin@zamenhof.demon.co.uk (Martin Radford)
In newsgroup: linux.dev.kernel
>
> The problem is that the reporting is confused -- the MB number is
> bytes / 2^20, but the GB number is MB / 10. Either the MB number
> should be changed to bytes / 10^6, or the GB number should be
> changed to MB / 2^10.
>
> I'd be tempted to keep the GB entry as refering to 2^30 bytes, and
> replace the MB entry with Mi.B. (i.e. millions of bytes, which seems
> to be what manufacturers use). That way, we can keep both camps
> happy, and (more important) stop future users from asking why Linux
> doesn't recognise the full capacity of their drives.
>
> So, we'd get
>
> SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17916240 [9173 Mi.B] [8.5 GB]
>
> (And if people ask why the difference, then the 9173 is "marketing
> megabytes", and the 8.5Gb is the "real figure".)
>

No! Let's not add more marketing crap here. Keep MB as real
megabytes!

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/