Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M3CQw-0005gL-Bb for mharc-grub-devel@gnu.org; Sun, 10 May 2009 13:03:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3CQu-0005fI-2j for grub-devel@gnu.org; Sun, 10 May 2009 13:03:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3CQo-0005a6-UY for grub-devel@gnu.org; Sun, 10 May 2009 13:03:23 -0400 Received: from [199.232.76.173] (port=56079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3CQo-0005Zq-MF for grub-devel@gnu.org; Sun, 10 May 2009 13:03:18 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:60386) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3CQn-0006Qy-QC for grub-devel@gnu.org; Sun, 10 May 2009 13:03:18 -0400 Received: by ewy6 with SMTP id 6so3127748ewy.42 for ; Sun, 10 May 2009 10:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=O6hEx/ozPt8oKfthXe4p0rY7JcLqeKEgKNJ1/s2VpC0=; b=Q0UOnySrIqvSFhHOHgGAoY87UYu3VtoP9ZXrLKwPRRJ11Fod0P1R8JauqQJ7DY0q1+ kyFpCpxbaU8X/9zvHeA0ox0qXlBndCrNfderLLDLeRvgM0cAXJpCGjRwuUnKRyIYhEwH BwLJopOulO+RtP3QH3NUFHOBnIoL7SZdDbe7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=OIs/qQhnR/Uv3dkMiGjFi2EhqLBHv13y9d0rqbGD9fYor96lxdrTkoiTNQAHGLwba8 WVhDoBU2L0uksLPsayGHs+u18jq3VNj/LY2rQOiVHvWRsJBSRcu2h/0V8vSZbOkA0tTP Vg1N54JxtmZWI9Y9PBXQ7cQxp1Au+5YslUIGs= Received: by 10.210.43.11 with SMTP id q11mr7692859ebq.72.1241974996058; Sun, 10 May 2009 10:03:16 -0700 (PDT) Received: from ?192.168.1.104? (213.37.226.100.dyn.user.ono.com [213.37.226.100]) by mx.google.com with ESMTPS id 7sm6008500eyg.27.2009.05.10.10.03.14 (version=SSLv3 cipher=RC4-MD5); Sun, 10 May 2009 10:03:15 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <49E3E0FB.1070907@verizon.net> <1241308934.4290.79.camel@accesodirecto.casa> <1241384352.2442.133.camel@ct> <1241393832.6586.35.camel@accesodirecto.casa> <1241409431.26483.33.camel@mj> <1241635288.4535.6.camel@accesodirecto.casa> <1241875621.22837.24.camel@accesodirecto.casa> <1241883761.22837.97.camel@accesodirecto.casa> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ytxSlluBBXQNN8L0hAec" Date: Sun, 10 May 2009 19:03:29 +0200 Message-Id: <1241975009.17475.12.camel@accesodirecto.casa> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: status grub2 port of grub-legasy map command X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2009 17:03:24 -0000 --=-ytxSlluBBXQNN8L0hAec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El dom, 10-05-2009 a las 13:47 +0200, Vladimir 'phcoder' Serbinenko escribi=C3=B3: > I guess you were trying to say that the casts are _not_ needed > if I > declared it as such. What I'm trying to say is that in its > only _direct_ > use (in memcpy), its "const void" signature is perfectly fine > for the > callee. All other uses are hidden within a nasty macro > "INT13_OFFSET", > which would still be used with your proposed change. Thus, > nothing is > gained, but a way to modify the int13h handler code on memory > opens, > without requiring a cast. Thus, I think such a change would be > for the > worse. > =20 > =20 > I see your reasoning. I personally prefer char[] and considering grub2 > works with different compilers I prefer to avoid constructs which > might be absent in some C dialects. I think we need a third opinion on > this According to the last C standard, section 6.2.5.19, "The void type comprises an empty set of values; it is an incomplete type that cannot be completed." Thus, declaring a variable as "extern void" is perfectly legal C, just like this program is perfectly legal: extern struct s b; int main(int argc, char** argv) { return 0; } Notice that the declaration of "struct s" is absent, and so it is an incomplete type, but still the declaration of a variable as "extern struct s" is legal (using "b", however, would not, since the compiler does not know the fields of "struct s"). Thus, declaring an extern variable as the incomplete type "void" is legal too, and the only operation that can be performed on it is taking its address with &. We can try to get third opinions if you want, though. >=20 > AfaIr, most operating systems only implement very basic > support for BIOS > disks (because they switch to their own drivers as soon as > possible). > Many, among them Linux iIrc, just probe them sequentially and > stop when > they find the first non-existant drive, while others probe hd0 > thru hd7 > and ignore the rest of them. In the first kind of OSes, > mapping hd0=3Dhd6 > when you have no hd6 will make hd1 disappear along with hd0, > which may > be very confusing to the user. Also, making a BIOS disk > disappear will > not banish it from being detected by the OS normal drivers, so > the > utility of this is pretty much restricted to DOS-like systems. > =20 > Of course it's not much additional benefit however I don't see any > real reason not to let the user do it=20 For me, the possibility of creating an inconsistent situation in which hd0 is "erased" through drivemap and hd1 disappears along with it is enough. However, I think we could settle on making it a switch of the drivemap command (like "--force" or SLT). Nevertheless, this would change the meaning of the drivemap arguments from "the BIOS drive that is represented in GRUB by hdN" to "the Nth BIOS hard drive", which might be confusing. --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-ytxSlluBBXQNN8L0hAec Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esto es una parte de mensaje firmado digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJKBwjdAAoJEKSl+Fbdeo72WW8P/jT+UDsoeZrbn5qtGpw6iLsC PMKgzaGAR2Fcgc2bPjyPSnUJ3V1MaMXWS4onImyISUPQk+R/RskW2u3TUO8OIUlC 0CM/4gnfcFLd9gB52E4I6ot5d55tD7+nG+1LGKnd4vpY6tvEnjiQ7CWjfhrxycTk 3OgXQx3yrIvvthSGXoY33zk1y9yzFuexK/fH6IDvyqA6TG3bgEcxpHt213e/y2CL 3/vBro5XDMhNSBXj6w7kqk9/FhbyV3m6MFWq7iyb/VvGc4j8ICng1XCXp8XgEtzm E7xCDijtcmQ+PoaHOnc2SdYbdQ/56sumROJ4xVBnq1L18gUyrs0Ei3CYzZGIRw+2 xc9vNvbuhsyL5TtC9uV+Vjwq0sh8+Zl6E9F5eF/OQtZOhOOzp3tI9RUmOrM6xawE VhkYo0A+tIpa5CoJ5PTK6Zu2gk8gcCKWMVQfAqvJ1KVsQVX8bwq145E1Ht6JweXi Scks0agskLQg72AHDTZJp4brP2aPXI3KRObIG1hC4nSxzQxTNRshu9DicEI3S7P8 dqKgImGAwFfiiAWNmVuSkS83otzPRySajC116ULyTz/PGJTUyf6mUpY4WL8TxA7C PCjcctVnL5SGs7pxD9UOftWtDNh8qgq6QjL+KYGZ+hVaGl2NSbBfHJSjroIgDtE+ FeBOi5528Mou6q+tagtN =XpPD -----END PGP SIGNATURE----- --=-ytxSlluBBXQNN8L0hAec--