Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JaU4w-00041N-3z for mharc-grub-devel@gnu.org; Sat, 15 Mar 2008 06:57:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JaU4t-0003zu-JJ for grub-devel@gnu.org; Sat, 15 Mar 2008 06:57:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JaU4s-0003zI-7q for grub-devel@gnu.org; Sat, 15 Mar 2008 06:57:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaU4r-0003zD-SF for grub-devel@gnu.org; Sat, 15 Mar 2008 06:57:25 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JaU4r-0003dC-DX for grub-devel@gnu.org; Sat, 15 Mar 2008 06:57:25 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JaU4L-0001sw-71 for grub-devel@gnu.org; Sat, 15 Mar 2008 11:56:53 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JaU2C-0006QA-5o for grub-devel@gnu.org; Sat, 15 Mar 2008 11:54:40 +0100 Date: Sat, 15 Mar 2008 11:54:40 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080315105440.GA23459@thorin> References: <1204977538.598.43.camel@msi.lan.chilibi.org> <873ar1tjd6.fsf@xs4all.nl> <1204992673.9855.18.camel@msi.lan.chilibi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1204992673.9855.18.camel@msi.lan.chilibi.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: RDB partition tables in AROS 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, 15 Mar 2008 10:57:28 -0000 On Sat, Mar 08, 2008 at 05:11:13PM +0100, Alain Greppin wrote: > Index: partmap/pc.c > =================================================================== > --- partmap/pc.c (revision 27991) > +++ partmap/pc.c (working copy) > @@ -24,6 +24,9 @@ > #include > #include I think it's a bad idea to increase pc.mod code size this way. This module is usually part of the "stage1" step, where size is already quite constrained. > +/* RDB partition tables for AROS */ > +struct grub_partition_map *grub_rdb_partition_map = NULL; > + > static struct grub_partition_map grub_pc_partition_map; > > #ifndef GRUB_UTIL > @@ -149,8 +152,42 @@ > && ! grub_pc_partition_is_extended (e->type)) > { > pcdata.dos_part++; > - > - if (hook (disk, &p)) > + > + /* Check if this is a RDB partition table. */ > + if (grub_rdb_partition_map && > grub_pc_partition_is_rdb(e->type)) > + { > + struct grub_partition p2; > + struct grub_disk raw2; > + int ok = 0; > + > + auto int rdb_hook(grub_disk_t disk, const > grub_partition_t p); > + > + int rdb_hook(grub_disk_t disk __attribute__((unused)), > + const grub_partition_t part) > + { > + p2 = *part; > + pcdata.bsd_part = part->index; > + > + p2.start += p.start; > + p2.offset += p.offset; > + p2.data = &pcdata; > + p2.partmap = &grub_pc_partition_map; > + > + grub_dprintf("partition", "RDB part %c start=%ld\n", > + (char)('a' + part->index), > (long)p2.start); > + > + ok = hook(disk, &p2); > + return ok; > + } > + > + raw2 = raw; > + raw2.partition = &p; > + > + grub_rdb_partition_map->iterate(&raw2, rdb_hook); > + if (ok) > + goto finish; > + } > + else if (hook (disk, &p)) > goto finish; > > /* Check if this is a BSD partition. */ > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)