Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KFb8z-0001dn-8W for mharc-grub-devel@gnu.org; Sun, 06 Jul 2008 16:47:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFb8x-0001dR-R8 for grub-devel@gnu.org; Sun, 06 Jul 2008 16:47:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFb8w-0001dA-5V for grub-devel@gnu.org; Sun, 06 Jul 2008 16:47:35 -0400 Received: from [199.232.76.173] (port=39266 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFb8w-0001d7-0Z for grub-devel@gnu.org; Sun, 06 Jul 2008 16:47:34 -0400 Received: from wf-out-1314.google.com ([209.85.200.169]:46261) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFb8v-0006Xq-PT for grub-devel@gnu.org; Sun, 06 Jul 2008 16:47:33 -0400 Received: by wf-out-1314.google.com with SMTP id 28so1847532wfc.24 for ; Sun, 06 Jul 2008 13:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=w899BFRXIr/p4Y8OM3e4jcWzd04VIrOwdA7BgDJSWxA=; b=XnyKWQ0PBBIW8hPUjtmMeh+glOEzQLJ5ifgInV5HQ/Ibm2CggC7Ky+G9yi0pj59X5z Lh6RRVASYV/RtoZnQ/uoXwBdqY2+w4rzp2hvZ4tB2ciLZSsFrwj1r4yR+/IfMTc9xHCk F+89VT/dc2zt8kZPrugxIx4isQkvQA58gZ9OE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Yrclq5X6zDzxmE1ZJBcXDtbazBkcAoFOSLzMJO+VaP+1S3IHDiwNacWHweGbsvWpi2 qBFJT9Zyg673UJ/X/pIgntQlNjsV0Ufbezcnp9d2eQNVwadoTmEaH/zVL6/Mq4EVVHwF WLOiI59qG7v25Qxx2JWIDtTBvQqbUfDQCQ+yw= Received: by 10.142.246.19 with SMTP id t19mr13013wfh.55.1215377250239; Sun, 06 Jul 2008 13:47:30 -0700 (PDT) Received: by 10.142.157.10 with HTTP; Sun, 6 Jul 2008 13:47:30 -0700 (PDT) Message-ID: <891e76af0807061347l11946074r335341d8a272ead0@mail.gmail.com> Date: Sun, 6 Jul 2008 20:47:30 +0000 From: "Lucas Gadani" To: "Robert Millan" In-Reply-To: <20080706184147.GE22023@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <891e76af0806291928r242db017wd0891a67f2301e68@mail.gmail.com> <20080706184147.GE22023@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Cc: The development of GRUB 2 Subject: Re: [PATCH] Fix chainloding + Chainloading into logical partitions 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: Sun, 06 Jul 2008 20:47:36 -0000 On Sun, Jul 6, 2008 at 18:41, Robert Millan wrote: > > Looks like it increases pc.mod code to store information that is only useful > to the chainloader. Is there a reason for not having the chainloader > retrieve it? (note that for disk access we have a cache) We would need to duplicate the code that iterates through the logical partitions in the chainloader or we can change pc_partition_map_iterate hook function to also receive grub_pc_partition (we can't use the pc_partition_map_iterate cause the hook function only receives a grub_disk_t and grub_partition_t, but not the grub_pc_partition that's necessary to reconstruct the partition info). -- Lucas