Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHgtg-0001oK-1R for mharc-grub-devel@gnu.org; Fri, 19 Jun 2009 12:25:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHgte-0001mF-8s for grub-devel@gnu.org; Fri, 19 Jun 2009 12:24:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHgtZ-0001dV-4n for grub-devel@gnu.org; Fri, 19 Jun 2009 12:24:57 -0400 Received: from [199.232.76.173] (port=59523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHgtY-0001d5-U2 for grub-devel@gnu.org; Fri, 19 Jun 2009 12:24:52 -0400 Received: from mail-bw0-f216.google.com ([209.85.218.216]:61897) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHgtY-0006H4-Cc for grub-devel@gnu.org; Fri, 19 Jun 2009 12:24:52 -0400 Received: by bwz12 with SMTP id 12so423951bwz.42 for ; Fri, 19 Jun 2009 09:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5zlW+OhR6Yf43FhCCubQCzwnoYrDdFZ0bKkFIp2s/0A=; b=vJwzL2ylFicP9XI9nYsV8QgqakY1Rf6PsLZlEfiG0eJ1QbXW0A+jIkxtHyrn5tyUrY 7Yu//SX5mxDBf6YI3o3y7jwTGxC3nFx/uCCGzb5+jh2xh4/jr1S/D9ajezSPhXWQCxdg 89vXCITI8CheBs6N6SdUOmey1pIJQk2cg3XXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wQRRgtdQmtTOspdfCiCwp4HR2W+984kMuP0FRB5Dlt6SX0dqfFltfSHuFfYIbIexR1 vpgfg3+VJ5l8n9/guzYcz7QPmfzeWdRR9CjhIUloaWP2WuejzlJZsAzeTkDPArOHFKh7 arHJGzE+rbq6Gad5LJO/ebNmzZEeBwV7+DMls= MIME-Version: 1.0 Received: by 10.204.59.14 with SMTP id j14mr2752904bkh.39.1245428691213; Fri, 19 Jun 2009 09:24:51 -0700 (PDT) In-Reply-To: <1245428129.2820.20.camel@mj> References: <48f46e890906182308i67d33260w7e5c6ea71ab3c44c@mail.gmail.com> <1245428129.2820.20.camel@mj> Date: Fri, 19 Jun 2009 18:24:51 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636c5bf1cbb9f1b046cb5f622 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Bean Subject: Re: [PATCH] bless command 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: Fri, 19 Jun 2009 16:24:59 -0000 --001636c5bf1cbb9f1b046cb5f622 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jun 19, 2009 at 6:15 PM, Pavel Roskin wrote: > On Fri, 2009-06-19 at 13:53 +0200, Vladimir 'phcoder' Serbinenko wrote: > > > Attached to this e-mail and on my personal git repository in branch > > bless the rediff. I was thinking of adding ppc mac support but haven't > > done it yet I think we can incorporate apple intel support without the > > ppc counterpart yet. Does anyone object? > > I don't see how PowerPC support would be different. It's a filesystem > issue. Actually, on PowerPC blessing on HFS (not on HFS+) would be > needed. > You need to set file type to tbxi on PowerPC. On HFS+ there are 2 relevant entries: blessed directory and blessed file. On EFI it works like: first tries blessed file if it's missing it tries (blessed directory)/boot.efi On PowerPC it searches for the first file of type tbxi in blessed directory > > I think it would be better to name the command "hfsbless". The way, HFS > support could be added to the same command later. I'm ok with renaming > > > Adding commands/hfspbless.c to grub_emu_SOURCES only on i386-pc seems > inconsistent. Either it should be added everywhere or nowhere. I think > we need a build system reorganization to allow grub_emu_SOURCES to be > mostly platform independent. > I completely agree. Bean was interested in doing so. Bean: what's your status? > > The spacing change in conf/i386-pc.rmk is unnecessary. > > "(void) mod;" is unnecessary. > > fs/hfsplus.c should include grub/hfsplus.h or it won't compile. > > In find_inode(), the core start with > > if(! info->inodeset) > return 0; > > It's both faster and more readable. > > Please run hfspbless.c through indent. It would fix such things as > > (fs->dir) (dev, *path == 0 ?"/":path, find_inode); > Thank you for these comments. I'll fix it as soon as I finish the build system additions I promised Carles > > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git --001636c5bf1cbb9f1b046cb5f622 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Jun 19, 2009 at 6:15 PM, Pavel R= oskin <proski@gnu.or= g> wrote:
On Fri, 2009-06-19 at 13:53 +0200, Vladimir 'phcoder&= #39; Serbinenko wrote:

> =A0Attached to this e-mail and on my personal git repository in branch=
> bless the rediff. I was thinking of adding ppc mac support but haven&#= 39;t
> done it yet I think we can incorporate apple intel support without the=
> ppc counterpart yet. Does anyone object?

I don't see how PowerPC support would be different. =A0It's a= filesystem
issue. =A0Actually, on PowerPC blessing on HFS (not on HFS+) would be
needed.
You need to set file type to tbxi on PowerPC. On HFS+ the= re are 2 relevant entries: blessed directory and blessed file. On EFI it wo= rks like:
first tries blessed file if it's missing it tries (blessed= directory)/boot.efi
On PowerPC it searches for the first file of type tbxi in blessed directory=

I think it would be better to name the command "hfsbless". =A0The= way, HFS
support could be added to the same command later.
I'm = ok with renaming


Adding commands/hfspbless.c to grub_emu_SOURCES only on i386-pc seems
inconsistent. =A0Either it should be added everywhere or nowhere. =A0I thin= k
we need a build system reorganization to allow grub_emu_SOURCES to be
mostly platform independent.
I completely agree. Bean was interested in doing so. Bean= : what's your status?

The spacing change in conf/i386-pc.rmk is unnecessary.

"(void) mod;" is unnecessary.

fs/hfsplus.c should include grub/hfsplus.h or it won't compile.

In find_inode(), the core start with

if(! info->inodeset)
=A0return 0;

It's both faster and more readable.

Please run hfspbless.c through indent. =A0It would fix such things as

(fs->dir) (dev, *path =3D=3D 0 ?"/":path, find_inode);
Thank you for these comments. I'll fix it as soon as = I finish the build system additions I promised Carles

--
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
= Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phco= der.git
--001636c5bf1cbb9f1b046cb5f622--