Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M37VS-00033E-De for mharc-grub-devel@gnu.org; Sun, 10 May 2009 07:47:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M37VQ-000339-Ej for grub-devel@gnu.org; Sun, 10 May 2009 07:47:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M37VL-00032x-Ub for grub-devel@gnu.org; Sun, 10 May 2009 07:47:43 -0400 Received: from [199.232.76.173] (port=51714 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M37VL-00032u-OX for grub-devel@gnu.org; Sun, 10 May 2009 07:47:39 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:52707) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M37VL-0001hL-3r for grub-devel@gnu.org; Sun, 10 May 2009 07:47:39 -0400 Received: by ewy6 with SMTP id 6so3005430ewy.42 for ; Sun, 10 May 2009 04:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=PDrmaPr+KskgBUi3FFEgvGGI2N7XIWua0fuiioUpKuU=; b=aeVdkCrhZ1GT70Fd37ecJxaM60k01WIPfY7t6NWyXNoAbEDCX8dHXywOw3ELe1spLm LqHY9nmn2RlJGb3aBRyIp+F+SdKv1JuKuejKD6xYZYjiKa1Z8EhBdGuLQ9zgUeTjYThS s2E/qlGqT/ZA7zmd7Uy3BycvEJ/DHO+Dxkh1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DIzeiSUqCLSbRD9e5yg+vANr0ScUuLbqq0KljHuWDrIMAZWZazhUZjubd8XzDvx1Wi 5C1o3KNI958xE6ZaMSFg/QsN646cXH1vZTrYh1MhqC1B/vqMNscoO1tpethzB5deBx9c 6KqEZLi+O2tgQQ4cMDpekuME9IM96/KtAxPoE= MIME-Version: 1.0 Received: by 10.210.63.2 with SMTP id l2mr7305863eba.67.1241956058279; Sun, 10 May 2009 04:47:38 -0700 (PDT) In-Reply-To: <1241883761.22837.97.camel@accesodirecto.casa> 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> Date: Sun, 10 May 2009 13:47:38 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0015174c3e88ae2e5604698d6d0f 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 11:47:44 -0000 --0015174c3e88ae2e5604698d6d0f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello. Sorry for the delay, I was kept busy by making grub2 compile with apples compiler. It already works just needs some testing and cleanup and then I'll post a patch > I don't see the advantage, particularly taking into account that the > current code is very happy to treat it as a black box that is taken from > the IVT and not touch it. However, if you insist, I'll change it. > No, it was more a suggestion > 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. > 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 > 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=hd6 > 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. > Of course it's not much additional benefit however I don't see any real reason not to let the user do it > > Well, I don't like to put things like this, but then biosdisk and ata > should be fixed to avoid these kind of bugs. > It's more difficult then this. The bugs can be in BIOS. Again I think we need a third opinion > > -- Regards Vladimir 'phcoder' Serbinenko --0015174c3e88ae2e5604698d6d0f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello. Sorry for the delay, I was kept busy by making grub2 compile with ap= ples compiler. It already works just needs some testing and cleanup and the= n I'll post a patch
I don't see the advantage, particularly taking into account that the current code is very happy to treat it as a black box that is taken from the IVT and not touch it. However, if you insist, I'll change it.
No, it was = more a suggestion
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&q= uot;,
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.
I see your = reasoning. I personally prefer char[] and considering grub2 works with diff= erent compilers I prefer to avoid constructs which might be absent in some = C dialects. I think we need a third opinion on this
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.
Of course it's not much addit= ional benefit however I don't see any real reason not to let the user d= o it

Well, I don't like to put things like this, but then biosdisk and= ata
should be fixed to avoid these kind of bugs.
It's more difficult then this= . The bugs can be in BIOS. Again I think we need a third opinion
=




--
Regards
Vladimir= 'phcoder' Serbinenko
--0015174c3e88ae2e5604698d6d0f--