2003-09-29 10:20:28

by David Luyer

[permalink] [raw]
Subject: Cosmetic error: 2.4.20 bootup and >2^31 sector SCSI devices

This looks like it's using some signed numbers that should be unsigned:

SCSI device sdc: -876998784 512-byte hdwr sectors (-449022 MB)

However all the tools (mkfs etc) work correctly and work out the correct
drive size (~1.75Tb):

/dev/sdc 1.7T 465G 1.2T 27% /usr/local/netflow/data

Apologies if it's already fixed in later 2.4.x.

David.
--
David Luyer Phone: +61 3 9674 7525
Network Development Manager P A C I F I C Fax: +61 3 9698 4825
Pacific Internet (Australia) I N T E R N E T Mobile: +61 4 1111 BYTE
http://www.pacific.net.au/ NASDAQ: PCNTF


2003-09-30 18:47:20

by Randy.Dunlap

[permalink] [raw]
Subject: Re: Cosmetic error: 2.4.20 bootup and >2^31 sector SCSI devices

On Mon, 29 Sep 2003 20:20:22 +1000 [email protected] wrote:

| This looks like it's using some signed numbers that should be unsigned:
|
| SCSI device sdc: -876998784 512-byte hdwr sectors (-449022 MB)
|
| However all the tools (mkfs etc) work correctly and work out the correct
| drive size (~1.75Tb):
|
| /dev/sdc 1.7T 465G 1.2T 27% /usr/local/netflow/data
|
| Apologies if it's already fixed in later 2.4.x.

I checked 2.4.22: it uses unsigned instead of signed values.
I checked 2.6.0-test4: it uses long long data types there, even better.

--
~Randy