Re: Promise TX2000 and 2.4.22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It worked !!!

I've applied this patch against 2.4.23-pre2 and it works ! (see bellow)

----
Partition check:
 hda: hda1 hda2
 hde: hde1
 hdg: hdg1
 ataraid/d0: ataraid/d0p1
Drive 0 is 239372 Mb (33 / 0)
Drive 1 is 239372 Mb (34 / 0)
Raid1 array consists of 2 drives.
Promise Fasttrak(tm) Softwareraid driver for linux version 0.03beta
----

thanks Walt !



Walt H wrote:
> Gabriel,
>
> I ran into an issue from one kernel version to the next where the
> geometry of one of my drives attached to the array was reported
> incorrectly. This had the same net effect that you are seeing. I've
> since moved on to the 2.6 kernel series using device mapper, but you
> might try this small patch and see if it helps you.
>
> Patch with: "patch -p0 < pdcraid.patch" in your /usr/src/linux
> directory. Good luck,
>
> -Walt
>
>
> ------------------------------------------------------------------------
>
> --- /usr/src/linux-2.4.21-ck3/drivers/ide/raid/pdcraid.c 2003-06-13 07:51:34.000000000 -0700
> +++ drivers/ide/raid/pdcraid.c 2003-07-21 20:47:14.000000000 -0700
> @@ -361,7 +361,11 @@
> if (ideinfo->sect==0)
> return 0;
> - lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
> - lba = lba * (ideinfo->head*ideinfo->sect);
> - lba = lba - ideinfo->sect;
> + if (ideinfo->head!=255) {
> + lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
> + lba = lba * (ideinfo->head*ideinfo->sect);
> + lba = lba - ideinfo->sect; }
> + else {
> + lba = ideinfo->capacity - ideinfo->sect;
> + }
>
> return lba;









[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux