lkml.org 
[lkml]   [1999]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
SubjectRe: Large Disk HOWTO
	From rpawul@iso-ne.com Thu Jul  1 15:36:35 1999
From: "Pawul, Rudy" <rpawul@iso-ne.com>

Hi Andries.

I have a qlogic scsi adapter and am trying to mount a 18GB drive. You
touch upon my problem in the HOWTO, Sect.10:
aha152x, pas16, ppa, qlogicfas, qlogicisp:

H=64, S=32 unless C > 1024, in which case H=255, S=63, C =
min(1023, M/(H*S)). (Thus C is truncated, and
H*S*C is not an approximation to the disk capacity M. This will
confuse most versions of fdisk.) The ppa.c code uses
M+1 instead of M and says that due to a bug in sd.c M is off by 1.
What I haven't found, is what to do. Am I just screwed?

Thanks,
Rudy Pawul

With an unpatched kernel, yes.
The patch below (which can be applied to all kernels (2.0.*, 2.2.*, 2.3.*)
will enable you to use more than 8 GB with a qlogic adapter.

Andries

--- qlogicfas.c~ Fri Feb 19 01:29:30 1999
+++ qlogicfas.c Thu Jul 1 16:08:51 1999
@@ -649,8 +649,10 @@
ip[0] = 0xff;
ip[1] = 0x3f;
ip[2] = disk->capacity / (ip[0] * ip[1]);
+#if 0
if (ip[2] > 1023)
ip[2] = 1023;
+#endif
}
return 0;
}
--- qlogicisp.c~ Fri Apr 23 04:30:08 1999
+++ qlogicisp.c Thu Jul 1 16:10:05 1999
@@ -1065,8 +1065,10 @@
ip[0] = 255;
ip[1] = 63;
ip[2] = size / (ip[0] * ip[1]);
+#if 0
if (ip[2] > 1023)
ip[2] = 1023;
+#endif
}

LEAVE("isp1020_biosparam");
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [from the cache]
©2003-2011 Jasper Spaans