From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SMcTN-0007WB-3e for mharc-grub-devel@gnu.org; Tue, 24 Apr 2012 05:55:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMcTG-0007V1-Fg for grub-devel@gnu.org; Tue, 24 Apr 2012 05:55:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMcTE-0006ta-6B for grub-devel@gnu.org; Tue, 24 Apr 2012 05:55:42 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:65187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMcTD-0006rr-Tl for grub-devel@gnu.org; Tue, 24 Apr 2012 05:55:40 -0400 Received: by wibhj13 with SMTP id hj13so2862408wib.12 for ; Tue, 24 Apr 2012 02:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=zHI9sqM1TGjECetEKYLtrWw6ichIgJIh+d7dwkgXx9U=; b=c1ptW2gxS3Cklc5kFt3l/FSiJ0f97VFKk3gyLBQyVRa+O2hQzo4aQZ8Jb3kQuOTD9/ IcC94UnIqehAi+wUt5Zc4/zeEShthHrI5daTJWlAs1nDlAp1REpKSEbeqk2kNEqWYTG0 3qKZWrpO8paWBmAld9jXV4x4popEHA+rhbWktLxW/PxCrVkGqS9nSqrZpsmgTjwitUql m9sUx9cOLAwMa8w0Hzam9VsBFoMt2cl3SV1v97iotnYGmVYWePIAi40O0e4hflPXDWNS fhRPXH1vpzKLpP8u7PlWW1dIP/fkBObs7I5uLKO4R8aaOtjh4NNsHnYf//zwOhcidfMn T0MQ== Received: by 10.180.78.164 with SMTP id c4mr29723379wix.10.1335261337728; Tue, 24 Apr 2012 02:55:37 -0700 (PDT) Received: from debian.x201.phnet (39-234.197-178.cust.bluewin.ch. [178.197.234.39]) by mx.google.com with ESMTPS id n20sm45215101wiw.5.2012.04.24.02.55.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 02:55:36 -0700 (PDT) Message-ID: <4F967895.3010203@gmail.com> Date: Tue, 24 Apr 2012 11:55:33 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH,HURD] Fix grub-probe with userland partition support References: <20120422182439.GE4755@type.famille.thibault.fr> <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> In-Reply-To: <20120424091915.GD4453@type.bordeaux.inria.fr> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig14BAD5CA143DB79B4E0D90B9" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 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 09:55:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig14BAD5CA143DB79B4E0D90B9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24.04.2012 11:19, Samuel Thibault wrote: > Because path_start is the start of the file, not of the partition > containing the file. > >> > Some partitions may contain more partitions, like logical container >> > contains logical partitions. > Yes, but we do not have defined /dev namings for these yet, so we don't= > know how to look for them grom GRUB yet. That 2 comments together open the can of worms. Second one would imply we should take the smallest partition containing the given file. E.g. One could have hd0s1 containing hd0s5 and hd0s6. 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. 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. I'm surprised that Hurd doesn't offer a way to just ask "What does this filesystem translator consume?" --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig14BAD5CA143DB79B4E0D90B9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk+WeJUACgkQNak7dOguQgnUMwD/UQkS7aOMNQlJmzjuioCLb9zB 1ZJZIAvfY+8J1EZFxpcBAIw/1JR4ojRd1bvYOwMPkQRfyRBXZmntSMW75G8mZTk5 =ejs2 -----END PGP SIGNATURE----- --------------enig14BAD5CA143DB79B4E0D90B9--