From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ObDFU-0005VI-W8 for mharc-grub-devel@gnu.org; Tue, 20 Jul 2010 09:52:45 -0400 Received: from [140.186.70.92] (port=57122 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObDFR-0005V2-MQ for grub-devel@gnu.org; Tue, 20 Jul 2010 09:52:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObDFN-00043y-Ku for grub-devel@gnu.org; Tue, 20 Jul 2010 09:52:41 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:60036) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObDFN-00043t-Eu for grub-devel@gnu.org; Tue, 20 Jul 2010 09:52:37 -0400 Received: by bwz9 with SMTP id 9so3668955bwz.0 for ; Tue, 20 Jul 2010 06:52:36 -0700 (PDT) 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:references:in-reply-to :x-enigmail-version:content-type; bh=ag7axh29/J9Uf56y6BS4izKlwsnuBZS8UUqQox/Y6xo=; b=HaeM+Y7AH+pLzkEeV4gP3DXtLrPAzu3EcC9ymJBmo94NMoMc5aPD2nJVnIZD1XZPNV dvUgSd5qI6ersXdr/mmBSlQvRS/HP3PP2F7kGYalEPsXqrKZ+6DRz2cdghk0xDyhWCSW bMxJI/ZuPhZHsWNSmLDMDqoAlC4h9E9iSKbgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=fn6prYesDY3C1Xvm5KV3jWscQHC1kEoOGIRIDYsnnxw29UIPbMQsmpXoKaKGKYPPsn 53e+fYRfsmyeXN6+0dWVPw0o+pRt8dF/EivANBQgeTHbgwBjEPfCSGYce0uEveHYAR66 C+r40I7zRi92ZG+Y+YQE/1GgSba9eiX9RtrOk= Received: by 10.204.83.167 with SMTP id f39mr5164681bkl.151.1279633956271; Tue, 20 Jul 2010 06:52:36 -0700 (PDT) Received: from debian.bg45.phnet ([81.62.128.73]) by mx.google.com with ESMTPS id y27sm28075171bkw.14.2010.07.20.06.52.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Jul 2010 06:52:35 -0700 (PDT) Message-ID: <4C45AA21.1090308@gmail.com> Date: Tue, 20 Jul 2010 15:52:33 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: grub-devel@gnu.org References: <4C375B25.7060306@gmail.com> In-Reply-To: <4C375B25.7060306@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig6A5D339761766F483FC41C36" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [Patch] strip disk->name of partition suffix in grub_disk_open X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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, 20 Jul 2010 13:52:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A5D339761766F483FC41C36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/09/2010 07:23 PM, Gr=C3=A9goire Sutre wrote: > Hi, > > When the argument passed to grub_disk_open is a string containing a > partition, e.g. "hd0,msdos3,bsd7", disk->name is set to the full > string instead of just the prefix up to the first ',' (here "hd0"). > This leads to incorrect partition identifiers when the disk name and > the partition name are concatenated (I observed this in the debug > messages of my nested partitions patch). Which functions concatenate disk->name with anything else? It looks like disk->name is with partitions by design. > > The attached patch fixes this issue. > > Gr=C3=A9goire > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig6A5D339761766F483FC41C36 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxFqiIACgkQNak7dOguQgmenAEApqjSF8dnkTdj/FIBfE30WCxc 54VCF6iP+6u0GGD3jfcBAJbcyL3iXoi+gHpsbArOO4h99a8fNr5q1eGDXpbFYhWD =m3oa -----END PGP SIGNATURE----- --------------enig6A5D339761766F483FC41C36--