lkml.org 
[lkml]   [2003]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] pdcraid and weird IDE geometry
Just to finish this thread. In case anyone else has similar problems of
only detecting 1 drive of their array and you suspect strange geometry
is at play, here's the simple patch I used in the end which WFM :)

-Walt


--- /usr/src/temp/linux-2.4.21/drivers/ide/raid/pdcraid.c 2003-06-13 07:51:34.000000000 -0700
+++ pdcraid.c 2003-07-18 06:54:25.000000000 -0700
@@ -361,7 +361,8 @@
if (ideinfo->sect==0)
return 0;
- lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
+/* lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
lba = lba * (ideinfo->head*ideinfo->sect);
- lba = lba - ideinfo->sect;
+ lba = lba - ideinfo->sect; */
+ lba = ideinfo->capacity - ideinfo->sect;

return lba;
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.015 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site