[Top][All Lists]

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

Re: grub-probe seems to be having problems

From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: grub-probe seems to be having problems
Date: Thu, 08 Mar 2012 18:46:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0

On 05.03.2012 21:07, Lennart Sorensen wrote:
On Sat, Mar 03, 2012 at 11:00:28PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko 
On 01.03.2012 20:47, Lennart Sorensen wrote:
address@hidden:~# /usr/sbin/grub-probe --device /dev/md1 --target=partmap
/usr/sbin/grub-probe: error: disk `mduuid/dc00bd3a0e9491bb0b66fa8b9246c2e8' not 
Attached patch eliminates some idiosyncracies problems with mdraid
1.x. Also fixes partial import problem and raid5 partial array
No improvement that I can see.

Is it possible there is endianess bugs in the code?
Yes, I've just fixed one. grub-fstest works on big-endian now. Couldn't test grub-probe since the Ubuntu on my PPC test machine is outdated.
1.x format is ALWAYS little endian, but I am on a big endian machine.
0.9 format is host endianess.
GRUB always assumes that RAID metadata is in little-endian. We don't have any "native-endian parsers" since we assume that grub-probe results are valid for GRUB runtime as well even if they run on different endianness. If we need any support for structures which can be either le or be we compile code twice, once for le, once for be (look at e.g. cpio code). I couldn't test the images created on big-endian platform due to ancient distro.

Vladimir 'φ-coder/phcoder' Serbinenko

reply via email to

[Prev in Thread] Current Thread [Next in Thread]