From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SMc1W-0006TB-1B for mharc-grub-devel@gnu.org; Tue, 24 Apr 2012 05:27:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMc1O-0006T3-D7 for grub-devel@gnu.org; Tue, 24 Apr 2012 05:27:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMc1M-0004Z3-7H for grub-devel@gnu.org; Tue, 24 Apr 2012 05:26:53 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:34986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMc1L-0004Yt-UP for grub-devel@gnu.org; Tue, 24 Apr 2012 05:26:52 -0400 Received: by werj55 with SMTP id j55so363599wer.0 for ; Tue, 24 Apr 2012 02:26:49 -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=8/W7FDD9DqbrajURfyXMw/iWRVuclu/HniHj2zD1O4Q=; b=MNQMLh5ztiM++7h5DnnQRD3AyYOkIajgmM0zo4MgT2zujM1VOxC5Q7fzvybmzPlLeX aAuM+mF5i47+cqomBIbSb+mhb+L0nVZHRuN70i+xZ5gjA1xzttmypQb51OOmSKAPlbip VCvgjxbSvYae6jp7JCm6YU2kCHl5GRNegol+TFzNzBDRFDUBFZq00v7FMA9Qw9QypgZI mikEeO1Mf8ry8oa0qcUHIKim/7q9GQ2fnbhKrUOqWwUd5eB4ldcEueuoojR6I4krgQzw 7LcKzUB+eGAEzxhd4qyk+YbUwSPpq2siK29itB1eacWa2BFkb8PcPwE5tqiR1H1IYTpv Sing== Received: by 10.216.132.98 with SMTP id n76mr11857624wei.101.1335259609793; Tue, 24 Apr 2012 02:26:49 -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 fn2sm45022353wib.0.2012.04.24.02.26.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 02:26:49 -0700 (PDT) Message-ID: <4F9671D6.9000008@gmail.com> Date: Tue, 24 Apr 2012 11:26:46 +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: The development of GNU GRUB Subject: Re: [PATCH,HURD] Fix grub-probe with userland partition support 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> <4F966A79.8050700@gmail.com> <20120424090056.GB4453@type.bordeaux.inria.fr> <4F966E6B.7010306@gmail.com> <20120424091627.GC4453@type.bordeaux.inria.fr> In-Reply-To: <20120424091627.GC4453@type.bordeaux.inria.fr> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7168023F74C1EF09E6F45C37" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 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:27:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7168023F74C1EF09E6F45C37 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24.04.2012 11:16, Samuel Thibault wrote: > Vladimir '=CF=86-coder/phcoder' Serbinenko, le Tue 24 Apr 2012 11:12:11= +0200, a =C3=A9crit : >> On 24.04.2012 11:00, Samuel Thibault wrote: >>> Vladimir '=CF=86-coder/phcoder' Serbinenko, le Tue 24 Apr 2012 10:55:= 21 +0200, a =C3=A9crit : >>>> On 24.04.2012 01:34, Samuel Thibault wrote: >>>>> + if (errno =3D=3D ENOENT && part >=3D 5) >>>>> + { >>>> This introduces an assumption that if part >=3D5 is missing then the= re are >>>> no additional partitions. While this is true for msdos, it's false f= or >>>> GPT, where such config is common after deleting a partition. Moreove= r, >>>> APM (apple) partitions often start at 8. >>> Ok, but what do you suggest? By the very nature of parted-based >>> translators, there is no way to know how many partitions there are. >> Can we know whether given device is partition? If we know that it is w= e >> can iterate as long as we can, adding some restriction like your 1000 >> and issuing error if it's hit since it should never happen. > I don't see how knowing whether the device is partition will help to > know where to stop. A user could very well have all partition nodes in > /dev up to 100, they'll all be partitions. Whether they actually exist > is another story, but as you say, you can't assume anything with the > absence of a partition. Theoretically you shouldn't stop until you find the partition if you know that your device is partition since it means that Hurd knows the partition in question. > > Samuel > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig7168023F74C1EF09E6F45C37 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+WcdYACgkQNak7dOguQglgEQD/dEiuw8Mebv2DXqDjgTCDlWOX GHQATg2kVMw2DuwDb38A/izAQCCF3BF9+k441hdgtGk+E4CvmzB7ogW1d91sZ3V2 =2FDf -----END PGP SIGNATURE----- --------------enig7168023F74C1EF09E6F45C37--