From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S5hQk-0000fS-Hw for mharc-grub-devel@gnu.org; Thu, 08 Mar 2012 12:47:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5hQd-0000eg-RP for grub-devel@gnu.org; Thu, 08 Mar 2012 12:47:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5hQP-0002CZ-Jp for grub-devel@gnu.org; Thu, 08 Mar 2012 12:47:03 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:34989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5hQP-0002CV-Af for grub-devel@gnu.org; Thu, 08 Mar 2012 12:46:49 -0500 Received: by eaal1 with SMTP id l1so236732eaa.0 for ; Thu, 08 Mar 2012 09:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=WAZI/w7P/G1OJZym+xaxfLoSva3XJpmfsdawyqC09v0=; b=wAUhzLmsFuhVKQ4HTZbcfcIqmKRzNAJCPtFGbLXzeHeNVTDculBgbsW6NoWH1KkdQn zhTVWpbv0ZpMQ8+KBf6e5SolJkfqlkdgn00QhGYRDCVTWQWcQ6pnqyswLLHDulGhDTMt i+OK818yS7AKt0AXOBz7mS+jHbcUCZNsYQzBljCbFnIe+ndGoR+hXsmJ10dPClidRBxL Ajk+KfM7VvkQusYViiwaPw1jLpGxzt7WJ0nqlNyNTNo5Rjfgo7f18N/WCGOdtSlkpfHd Ahk4x7tzG23zJ8ZvBIlBSNvMWOp5iHkZgi+kz4IPJj1ZZOieDmk1pJRP7aukcv3GQKRe A6KQ== Received: by 10.213.10.196 with SMTP id q4mr1332092ebq.6.1331228806989; Thu, 08 Mar 2012 09:46:46 -0800 (PST) Received: from debian.x201.phnet (95-233.197-178.cust.bluewin.ch. [178.197.233.95]) by mx.google.com with ESMTPS id n55sm8472856eef.6.2012.03.08.09.46.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Mar 2012 09:46:45 -0800 (PST) Message-ID: <4F58F082.1090504@gmail.com> Date: Thu, 08 Mar 2012 18:46:42 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: grub-probe seems to be having problems References: <20120301194758.GE22241@caffeine.csclub.uwaterloo.ca> <4F52947C.3010500@gmail.com> <20120305200729.GE14853@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20120305200729.GE14853@caffeine.csclub.uwaterloo.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2012 17:47:08 -0000 On 05.03.2012 21:07, Lennart Sorensen wrote: > On Sat, Mar 03, 2012 at 11:00:28PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> On 01.03.2012 20:47, Lennart Sorensen wrote: >>> root@rceng03new:~# /usr/sbin/grub-probe --device /dev/md1 --target=partmap >>> /usr/sbin/grub-probe: error: disk `mduuid/dc00bd3a0e9491bb0b66fa8b9246c2e8' not found. >> Attached patch eliminates some idiosyncracies problems with mdraid >> 1.x. Also fixes partial import problem and raid5 partial array >> problem. > 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. > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko