Re: Cosmetic error: 2.4.20 bootup and >2^31 sector SCSI devices

From: Randy.Dunlap
Date: Tue Sep 30 2003 - 13:49:45 EST


On Mon, 29 Sep 2003 20:20:22 +1000 david@xxxxxxxxx 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/