Re: [PATCH] pdcraid and weird IDE geometry

From: Walt H (waltabbyh@comcast.net)
Date: Fri Jul 18 2003 - 09:51:45 EST


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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:34 EST