Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SMH6M-00053N-8k for mharc-grub-devel@gnu.org; Mon, 23 Apr 2012 07:06:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMH6J-00053B-Rq for grub-devel@gnu.org; Mon, 23 Apr 2012 07:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMH6D-0003H6-LZ for grub-devel@gnu.org; Mon, 23 Apr 2012 07:06:35 -0400 Received: from solo.fdn.fr ([80.67.169.19]:59559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMH6D-0003GC-FO for grub-devel@gnu.org; Mon, 23 Apr 2012 07:06:29 -0400 Received: from type.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTPS id 1AAFE44231 for ; Mon, 23 Apr 2012 13:06:28 +0200 (CEST) Received: from samy by type.ipv6 with local (Exim 4.77) (envelope-from ) id 1SMH6B-000190-2a for grub-devel@gnu.org; Mon, 23 Apr 2012 13:06:27 +0200 Date: Mon, 23 Apr 2012 13:06:27 +0200 From: Samuel Thibault To: The development of GNU GRUB Subject: Re: [PATCH,HURD] Fix grub-probe with userland partition support Message-ID: <20120423110627.GL4755@type.famille.thibault.fr> References: <20120422182439.GE4755@type.famille.thibault.fr> <4F951839.4070309@gmail.com> <20120423094030.GB4755@type.famille.thibault.fr> <4F9532B5.9050701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F9532B5.9050701@gmail.com> User-Agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 11:06:37 -0000 Vladimir '=CF=86-coder/phcoder' Serbinenko, le Mon 23 Apr 2012 12:45:09 += 0200, a =C3=A9crit : > On 23.04.2012 11:40, Samuel Thibault wrote: > > Vladimir '=CF=86-coder/phcoder' Serbinenko, le Mon 23 Apr 2012 10:52:= 09 +0200, a =C3=A9crit : > >> map was never intended to be globally visible. At most perhaps > >> "semi-local" due to difficulties of split between getroot.c and host= disk.c > >> Moreover the behaviour of find_root_device must be independent of wh= at > >> is already in map since we don't rely anymore at map being populated= at > >> all and at entries only on as-needed basis. > > How can I get the same information, then? (the unix path correspondin= g > > to a disk opened with grub_disk_open()) > The problem is bigger than just getting the device from a disk. The > problem is that you assume that grub_disk_dev_iterate will go through > the disk in question which isn't necessarily true. And so? Our need is to iterate over all disks that GRUB sees, to match that with where the file resides. Samuel