Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MAhrB-0003Hx-QX for mharc-grub-devel@gnu.org; Sun, 31 May 2009 06:01:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAhr7-0003Aw-JC for grub-devel@gnu.org; Sun, 31 May 2009 06:01:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAhr0-000374-Ig for grub-devel@gnu.org; Sun, 31 May 2009 06:01:27 -0400 Received: from [199.232.76.173] (port=56074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAhr0-00036k-BQ for grub-devel@gnu.org; Sun, 31 May 2009 06:01:22 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:46542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAhqz-0003bC-K7 for grub-devel@gnu.org; Sun, 31 May 2009 06:01:21 -0400 Received: by ewy6 with SMTP id 6so8874263ewy.42 for ; Sun, 31 May 2009 03:01:19 -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=MTARZ92nEmlGe88XJuMz96c37H39NkMYU+uYNVnZmHY=; b=si+NRrWoyEjq7ZbSaFHl7Cs+mHoPSEzXGABn278Ropfr1KB/tRBNnzd7Zy+7qVRmmE xlB/Ie4ynZMZW3VstGvZ8SHwx3nZCzS68wuyK1q65YMbtmXDqxPzZLVE6ZofoYDbephN G2JXt72AUTU0IJbbF6vDvgqD0waP3hG92S0Nc= 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=FePLYC/X5gcu48WCGUyYC7EHWsFt7snXr8E/kELNtGClOnr1a+eHssx7Rx4zVhbwVR 93jpEYe+z2R6MYgbMrvDojMrwNS20HeP4BfgYdQPaCb5RtcIo5bU4vmqYNCWpcLXY91T QUto9yzM/wVegfb4Jnc5f5JjX+8Z4R9rTm/hA= Received: by 10.210.37.11 with SMTP id k11mr4864565ebk.62.1243764079942; Sun, 31 May 2009 03:01:19 -0700 (PDT) Received: from ?192.168.1.100? (89.141.11.145.dyn.user.ono.com [89.141.11.145]) by mx.google.com with ESMTPS id 5sm5608065eyf.58.2009.05.31.03.01.17 (version=SSLv3 cipher=RC4-MD5); Sun, 31 May 2009 03:01:18 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <49E3E0FB.1070907@verizon.net> <1241875621.22837.24.camel@accesodirecto.casa> <1241883761.22837.97.camel@accesodirecto.casa> <1242265918.21129.27.camel@mj> <1242309828.12546.15.camel@mj> <1242325022.6056.7.camel@mj> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-HlId7+uphOtbJcQHyLLl" Date: Sun, 31 May 2009 12:01:18 +0200 Message-Id: <1243764078.22342.10.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, 31 May 2009 10:01:30 -0000 --=-HlId7+uphOtbJcQHyLLl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El s=C3=A1b, 30-05-2009 a las 17:28 +0200, Vladimir 'phcoder' Serbinenko escribi=C3=B3: > >> > I'm fine with the change from "const void" to "const char", but we n= eed > >> > to remove a preceding comment about void labels. > >> It's not that I'm opposed to void in principle. Just using the same > >> constructions to do the same things in different files makes code > >> easier to learn and port > > > > I wonder if we can go the other way and use void for all labels without > > storage. Indeed, it's too easy to misuse a char variable by forgetting > > the ampersand before it. > Not char [] What if someone sees the code and thinks it's truly a char array? I insist: you are stirring a tempest in a teapot. Even without taking into account that "const void label" is more "elegant" and logical for a simple label than using a char array, the only argument you give is consistency with the rest of GRUB code. This is an important plus for a decision, but consistency should never be an argument in and of itself. Furthermore, a distinct C type for labels like "const void", or even better, "grub_asm_label_t" would help a programmer identify them all with a simple "find in files" command, while char arrays may abound and be tricky to tell apart. > > > >> > As for the parse_biosdisk() change, I'd like to see an explanation. > >> The explanation is that if user uses ata or usbms code and code calls > >> biosdisk, BIOS may issue a command which may conflict with ata/usbms. > >> Unfortunately it's not a scenario we're able to circumvent (BIOS is > >> headache) so I prefer to err on a safe side > > > > I agree that we should avoid touching the hardware. Besides, after > > loading ata we may not see some drives that BIOS can see. > > > > Validation of user input is good, but only if it's implemented > > correctly. > > > > Another approach may be to use biosdisk calls only if biosdisk is > > active. Otherwise, trust the user and turn off validation. > > > I've checked and seen that ata disables biosdisk. This mean that we > need to disable this validation. As for calling biosdisk only if it's > active: "active" isn't well-defined with grub2 and it will add > unnecessary complexity Put it that way, I agree with your change. To the scrapper with parse_biosdisk then! I think the new behaviour should be mentioned in the drivemap --help command, though I'm too tangled up with finals to be of any utility right now. --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-HlId7+uphOtbJcQHyLLl 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) iQIcBAABAgAGBQJKIlVoAAoJEKSl+Fbdeo72YGMQAJh8KCb8Bt3NxQAVlOMC4GYM sRAxt9/PCjYmmkunX6oe92uu+9q+YFoeSCzCza1nALljW0dZBCzAdZrK82e+/G3q dlDRzYVxHM8j3taAAj2SREAFcy73nnEn9u7bo/Ye0ZlMO1uZEZupzaRQTalSbvAN bhgUtI+Razf2NlPEzunYGdnLT9ej9AVTHaQH0aC/Pl1ilymUShHiX7O+NuYwUjju j7jBNerE/9a5VAzMsKn7lS5gBWXUj9gS17lcOB9tioKZQIImg/bGAJP7G6C9fYux wABxnwzO8RAQ95+RREUIiw5A9/JDiuyKdWP1J6U84DmweVuLN0dlsBtn1A/aVsRQ EbnGfZzZLN8+hpCvpo0P3uxxI4mUxWLTfqu1VypztAhx00CqNZ+eljTkFEBVCK5r nW52jCzeNSODIyBnmwYPT8TuIMYJlHPg/MCSAoTkmrzM6MZz2rl+zWcBavz15oTG ByQTsBHlwhr7xs3ql9tV2TXjaJml6A1GpUcTnkg7J6619WLpBc2kkcc2Tv7sdluU ijfMfuEc+qxkBKLG+jOyEQ2eSPidHw2tEdAx5p9+7vmP6wYzOZDcwqBpRlj9u/CN PA8vRmLoSu3ICAH80jDJkjIhehcl3+7o4y2/NMD6T1dZRAXMupwivDy4tAjmEgPt W13qGjuYWSTbA3EzsuTT =lazj -----END PGP SIGNATURE----- --=-HlId7+uphOtbJcQHyLLl--