[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Big Endian fix patch (was: Re: Couple more fixes for Linux raid metadata
From: |
Lennart Sorensen |
Subject: |
Big Endian fix patch (was: Re: Couple more fixes for Linux raid metadata 1.x support) |
Date: |
Mon, 26 Jul 2010 17:07:28 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Jul 26, 2010 at 01:20:34PM -0400, Lennart Sorensen wrote:
> I just tried this patch with a fresh checkout. I still can't get grub
> to read my 1.x raids (That I just created using the debian installer
> daily build).
>
> If I use 0.9 raid, it seems to work fine.
>
> I keep getting errors like:
>
> Welcome to GRUB!
>
> error: read error on block: 18446744073709551360.
> error: no such disk.
> Entering rescue mode...
> grub rescue>
>
> Now this is on a powerpc64 system, so it is big endian. That number by
> the way is FFFFFFFFFFFFFF00.
>
> I wonder if some part of the 1.x raid handling code has an endianess bug.
>
> Got any guesses I can try before I just go convert back to 0.9 raids?
> I really hate giving up on things that ought to work and loose the
> debugging opportunity.
Turns out it very much was endian issues.
Here is a patch that fixes it for me.
I am using your two recent patches as well.
--
Len Sorensen
md_raid_1x_bigendian_fix.diff
Description: Text Data