Messages in this thread Patch in this message | | | Date | Fri, 18 Jul 2003 07:51:45 -0700 | From | Walt H <> | Subject | Re: [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; | |