Re: Storage Limitations

Tomasz Przygoda (tprzyg@securities.com)
Thu, 01 Oct 1998 17:32:06 -0400


I have 2 * 92GB and one * 68GB (all on DPT PM 3334) and I'm building one
68GB on ICP-Vortex (GDT6538RD).

The only thing I had to do so far, was:

--- linux/drivers/scsi/scsicam.c.orig Mon Jun 29 15:33:48 1998
+++ linux/drivers/scsi/scsicam.c Mon Jun 29 15:32:58 1998
@@ -45,6 +45,7 @@
struct buffer_head *bh;
int ret_code;
int size = disk->capacity;
+ unsigned long temp_cyl;

if (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev)&~0xf), 0, 1024)))
return -1;
@@ -67,6 +68,11 @@
if (ret_code || ip[0] > 255 || ip[1] > 63) {
ip[0] = 64;
ip[1] = 32;
+ temp_cyl = size / (ip[0] * ip[1]);
+ if (temp_cyl > 65535) {
+ ip[0] = 255;
+ ip[1] = 63;
+ }
ip[2] = size / (ip[0] * ip[1]);
}

as the number of cylinders is only unsigned int not unsigned long :(

-- Tomek,
"In theory there's no difference between theory and practice, but in practice...."

-
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/