Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SMf4h-0000B8-QK for mharc-grub-devel@gnu.org; Tue, 24 Apr 2012 08:42:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMf4e-00008E-Qf for grub-devel@gnu.org; Tue, 24 Apr 2012 08:42:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMf4Y-0004sA-ET for grub-devel@gnu.org; Tue, 24 Apr 2012 08:42:28 -0400 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:65323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMf4Y-0004rz-8f for grub-devel@gnu.org; Tue, 24 Apr 2012 08:42:22 -0400 X-IronPort-AV: E=Sophos;i="4.75,473,1330902000"; d="scan'208";a="155322611" Received: from unknown (HELO type.ipv6) ([193.50.110.104]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 24 Apr 2012 14:42:20 +0200 Received: from samy by type.ipv6 with local (Exim 4.77) (envelope-from ) id 1SMf4W-0002k5-B3 for grub-devel@gnu.org; Tue, 24 Apr 2012 14:42:20 +0200 Date: Tue, 24 Apr 2012 14:42:20 +0200 From: Samuel Thibault To: The development of GNU GRUB Subject: Re: [PATCH,HURD] Fix grub-probe with userland partition support Message-ID: <20120424124220.GS4453@type.bordeaux.inria.fr> References: <4F951839.4070309@gmail.com> <20120423094030.GB4755@type.famille.thibault.fr> <4F9532B5.9050701@gmail.com> <20120423110627.GL4755@type.famille.thibault.fr> <4F953A3B.3000708@gmail.com> <20120423212606.GV4755@type.famille.thibault.fr> <20120423233423.GC4755@type.famille.thibault.fr> <4F966CAE.3080300@gmail.com> <20120424091915.GD4453@type.bordeaux.inria.fr> <4F967895.3010203@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F967895.3010203@gmail.com> User-Agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.82 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: Tue, 24 Apr 2012 12:42:30 -0000 Vladimir 'φ-coder/phcoder' Serbinenko, le Tue 24 Apr 2012 11:55:33 +0200, a écrit : > One could have hd0s1 containing hd0s5 and hd0s6. Argl, I forgot that case indeed. It's funny how that contracts the very word "partition"... > In this case we want hd0s5 and not hd0s1. On the other hand a file may > reside in partition but be part of a filesystem spanning through the > whole disk. This is common for all kinds of hybrid CDROMs, including > the ones created by grub-mkrescue. They have iso9660 spanning through > the whole disk but all of the disk other than the first sector is > in some kind of partition table to avoid it being accidentally > overwritten. So even though the file itself is inside a partition, we > want the whole disk. The partition itself can not be mounted? > Also if file is 0-sized, sparse, compressed or encrypted it won't have > blocklist and this approach would fail, possibly even with out-of-range > array access. Other than 0-sized would work, the eventual storage would still be on the partition. 0-sized indeed poses problems. > I'm surprised that Hurd doesn't offer a way to just ask "What does this > filesystem translator consume?" Because the whole point of the Hurd is to let the user have access to more powerful ways. A file can reside inside an iso file, which is stored in an ext2fs, which is stored in a file, using the user's own translator with no constraint on the naming convention, etc. etc. That's why it generally does not make sense to know where a file comes from, because you would not know how to parse the result. The proper way would be asking the FS, which may tell you /hurd/ext2fs --writable --no-inherit-dir-group /dev/hd0s1 or ext2fs --writable --no-atime --no-inherit-dir-group --store-type=typed device:hd1 But we generally don't want to impose any syntax here, it could actually be /opt/my/own/translator xyz I guess we'll have to impose some syntax anyway for whatever contains /boot, so that grub can open it itself. Samuel