From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LfxzH-0000wh-EJ for mharc-grub-devel@gnu.org; Sat, 07 Mar 2009 09:58:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfxzF-0000vi-Kz for grub-devel@gnu.org; Sat, 07 Mar 2009 09:58:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfxzE-0000vQ-48 for grub-devel@gnu.org; Sat, 07 Mar 2009 09:58:49 -0500 Received: from [199.232.76.173] (port=34032 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfxzE-0000vN-2E for grub-devel@gnu.org; Sat, 07 Mar 2009 09:58:48 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:60142) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfxzD-0003B8-Lb for grub-devel@gnu.org; Sat, 07 Mar 2009 09:58:47 -0500 Received: by fg-out-1718.google.com with SMTP id l27so646448fgb.30 for ; Sat, 07 Mar 2009 06:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=NPOWyLvRonGU+V3YHsE3HucUzN+QUbyk0Xk8QDC/YfY=; b=WbmFH+rmKVx/1ePNP93A4WgXkMpzTq3MiBMWR13T+Hce8b6j7YJsOggE3rUM9QdseN tS8pMk2xGIusPXXES+ucXlbnUSEWOMoooSsGhxx3GYarW6ssQuZ8CuokfbZvRLbaNA1l W68dPOZ6zbJwQY1FdeXLWVwU+sPlZiGXHeD0o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=RJVdEnyK/R014D6Zuisqro4DsCkrSmbbU3t2PeLnNh1WpoHQDDOXE/FSbkmjgJ5xe+ OPBWT70yKHBoRink7TStITKPPXKOF90ugHu3HKpzpMAWsL4DGXQ7gRolQe3vLsf5AVPi BdbrSbwdj2GHx1+whNgKCK+nN7IWZC7cWEAts= Received: by 10.86.96.18 with SMTP id t18mr2699425fgb.25.1236437925776; Sat, 07 Mar 2009 06:58:45 -0800 (PST) Received: from ?192.168.1.25? (219-146.62-81.cust.bluewin.ch [81.62.146.219]) by mx.google.com with ESMTPS id e20sm1017238fga.29.2009.03.07.06.58.45 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Mar 2009 06:58:45 -0800 (PST) Message-ID: <49B28BA6.3030109@gmail.com> Date: Sat, 07 Mar 2009 15:58:46 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Design] nested partitions: Unify grub_partition and grub_disk 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, 07 Mar 2009 14:58:49 -0000 Hello. I was looking into nested partitions issue and propose to unify grub_partition and grub_disk. In this case when a code calls grub_disk_read with a grub_disk_t which represents a partition it will correct the offset and call grub_disk_read with underlying partition or disk. In this way not only nested partitions become natural but also conceptually similar fields of total_sectors and len become unified. As it's an important design change I send this e-mail before coding it -- Regards Vladimir 'phcoder' Serbinenko