★ wanayoo — archive 1999 http://kernelnotes.org/patch/21-p0696.htmlNouvelle recherche | Portail wanayoo

SCSI-disk size display

Kurt Huwig (kurt@huwig.de)
Sun Jul 27 10:11:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

2x-SCSI-size.patch
While booting, linux displays this:

SCSI device sda: hdwr sector= 512 bytes. Sectors= 8388608 [4096 MB] [4.1 GB]

which I believe to be untrue, because 4096 MB are exactly 4 GB. With the patch below, it displays the corret result:

SCSI device sda: hdwr sector= 512 bytes. Sectors= 8388608 [4096 MB] [4.0 GB]

The GB are rounded, which was also in the original code, so my second disk reports

SCSI device sdb: hdwr sector= 512 bytes. Sectors= 2031554 [991 MB] [1.0 GB]

although it has a little bit less than 1GB, but 0.9GB would be "wronger"




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.