Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LnYdS-00040l-Mn for mharc-grub-devel@gnu.org; Sat, 28 Mar 2009 09:31:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnYdQ-00040a-LY for grub-devel@gnu.org; Sat, 28 Mar 2009 09:31:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnYdL-00040M-6n for grub-devel@gnu.org; Sat, 28 Mar 2009 09:31:39 -0400 Received: from [199.232.76.173] (port=58085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnYdL-00040J-1Y for grub-devel@gnu.org; Sat, 28 Mar 2009 09:31:35 -0400 Received: from flatline.sindominio.net ([82.144.4.26]:36590) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnYdJ-0001Hd-Vg for grub-devel@gnu.org; Sat, 28 Mar 2009 09:31:34 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id 29FD3A1BABCD for ; Sat, 28 Mar 2009 14:31:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y7BuxJhj4-hC for ; Sat, 28 Mar 2009 14:31:25 +0100 (CET) Received: from nubol.oskuro.net (unknown [85.52.167.17]) by flatline.sindominio.net (Postfix) with ESMTP id A8BE3A1AADB8 for ; Sat, 28 Mar 2009 14:31:17 +0100 (CET) Received: by nubol.oskuro.net (Postfix, from userid 1000) id 08DE33AE595; Sat, 28 Mar 2009 14:31:11 +0100 (CET) Date: Sat, 28 Mar 2009 14:31:11 +0100 From: Jordi Mallach To: grub-devel@gnu.org Message-ID: <20090328133111.GA26174@nubol.oskuro.net> References: <1236620234.16943.20.camel@mj> <20090323032339.GA27423@nubol.oskuro.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20090323032339.GA27423@nubol.oskuro.net> Organization: SinDominio X-Operating-System: Debian GNU/Linux sid (Linux 2.6.26-1-686 i686) User-Agent: Mutt/1.5.18 (2008-05-17) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Use hfs case ordering - another try X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 13:31:40 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm attaching Michel's reply to this post, as he isn't subscribed. On Mon, Mar 23, 2009 at 04:23:39AM +0100, Jordi Mallach wrote: > However, I'm having the same boot problems as before. I've installed > the new version of GRUB to OF, and when I boot I get the known "initrd: > command not found" error. >=20 > Furthermore, the search command still appears to fail on at least Apple > OF, and if it's in my boot commandlist, it'll set root to an invalid de= vice, > making the boot fail with "you need to load the kernel first". >=20 > Has anyone else had success with this patch in Debian or using SVN/Git = code, > on PPC? --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/ --zYM0uCDKw75PZbzx Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on nubol.oskuro.net X-Spam-Level: X-Spam-Status: No, score=-5.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.5 X-Original-To: jordi@localhost Delivered-To: jordi@localhost Received: from nubol.oskuro.net (localhost.localdomain [127.0.0.1]) by nubol.oskuro.net (Postfix) with ESMTP id 7AC073AEFAF for ; Mon, 23 Mar 2009 13:17:00 +0100 (CET) X-Original-To: jordi@sindominio.net Delivered-To: jordi@sindominio.net Received: from flatline.sindominio.net [198.18.1.6] by nubol.oskuro.net with POP3 (fetchmail-6.3.9-rc2) for (single-drop); Mon, 23 Mar 2009 13:17:00 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id B048CA1E1956 for ; Mon, 23 Mar 2009 12:39:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzqbIkW4czSt for ; Mon, 23 Mar 2009 12:39:13 +0100 (CET) Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by flatline.sindominio.net (Postfix) with ESMTP id 09E50A1786FB for ; Mon, 23 Mar 2009 12:38:41 +0100 (CET) Received: from jordi by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LliTl-0000vP-Hs for jordi@sindominio.net; Mon, 23 Mar 2009 07:38:05 -0400 Received: from mail.gnu.org ([199.232.76.166]:36613 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LliTl-0000ux-6z for jordi@gnu.org; Mon, 23 Mar 2009 07:38:05 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LliTi-0002F5-AH for jordi@gnu.org; Mon, 23 Mar 2009 07:38:04 -0400 Received: from darkcity.gna.ch ([195.226.6.51]:55855 helo=mail.gna.ch) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LliTh-0002Dv-VE; Mon, 23 Mar 2009 07:38:02 -0400 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id E40D9E5387; Mon, 23 Mar 2009 12:37:56 +0100 (CET) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QjKYnhFfocPx; Mon, 23 Mar 2009 12:37:56 +0100 (CET) Received: from thor.local (84-75-221-39.dclient.hispeed.ch [84.75.221.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 7313EE5382; Mon, 23 Mar 2009 12:37:56 +0100 (CET) Received: from daenzer by thor.local with local (Exim 4.69) (envelope-from ) id 1LliTb-0000JQ-QS; Mon, 23 Mar 2009 12:37:55 +0100 Subject: Re: [PATCH] Use hfs case ordering - another try From: Michel =?ISO-8859-1?Q?D=E4nzer?= To: Jordi Mallach Cc: The development of GRUB 2 In-Reply-To: <20090323032339.GA27423@nubol.oskuro.net> References: <1236620234.16943.20.camel@mj> <20090323032339.GA27423@nubol.oskuro.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Mar 2009 12:37:54 +0100 Message-Id: <1237808274.25253.700.camel@thor.local> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Sender: Jordi Mallach On Mon, 2009-03-23 at 04:23 +0100, Jordi Mallach wrote:=20 >=20 > On Mon, Mar 09, 2009 at 01:37:14PM -0400, Pavel Roskin wrote: > > Hello! > >=20 > > It's a shame the discussion about hfs got nowhere. I've made another > > patch. I didn't look at the Linux hfs sources or at any previous > > patches. I took the case ordering table from hfsutils 3.2.6, which is > > licensed under GPL v2 or newer. Then I ran the table through a simple > > program to make it more readable (attached for reference). The values > > in the table have been normalized to avoid gaps. Values for equal > > characters are initialized on the same line for readability. >=20 > Thanks for rescuing this fix! >=20 > Felix uploaded a new GRUB snapshot which should include this patch. >=20 > However, I'm having the same boot problems as before. I've installed > the new version of GRUB to OF, and when I boot I get the known "initrd: > command not found" error. >=20 > Furthermore, the search command still appears to fail on at least Apple > OF, and if it's in my boot commandlist, it'll set root to an invalid devi= ce, > making the boot fail with "you need to load the kernel first". >=20 > Has anyone else had success with this patch in Debian or using SVN/Git co= de, > on PPC? I didn't get around to trying Pavel's patch, but from your description it most likely didn't fix the problem properly. Do grub2 file access commands like hexdump or cat work for special filenames like _linux.mod? Looking at Pavel's patch, one problem that jumps out immediately is that it doesn't handle the string lengths correctly. HFS strings aren't zero-terminated, so grub_hfs_cmp_catkeys() needs to make sure it only compares characters up to the length of min(k1->strlen, k2->strlen) and if they all match, return k1->strlen - k2->strlen. I'm not sure that's what causes your problem though Jordi, but anyway, why wasn't I CC'd on the new patch? :( --=20 Earthling Michel D=C3=A4nzer | http://www.vmware.c= om Libre software enthusiast | Debian, X and DRI developer --zYM0uCDKw75PZbzx--