Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M4fou-0004EW-OP for mharc-grub-devel@gnu.org; Thu, 14 May 2009 14:38:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4fos-0004Db-F8 for grub-devel@gnu.org; Thu, 14 May 2009 14:38:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4fon-0004DF-Ju for grub-devel@gnu.org; Thu, 14 May 2009 14:38:13 -0400 Received: from [199.232.76.173] (port=56691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4fon-0004DC-E6 for grub-devel@gnu.org; Thu, 14 May 2009 14:38:09 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]:62692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4fom-00089H-UA for grub-devel@gnu.org; Thu, 14 May 2009 14:38:09 -0400 Received: by ewy6 with SMTP id 6so1931108ewy.42 for ; Thu, 14 May 2009 11:38:08 -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 :content-transfer-encoding; bh=7A+HrjH4SgCqnqeyDWdHBiTOpgbPnw+9Or0Q9wUtRPQ=; b=fF0Sj+KLeDYhxaCmU5tuWX/A0/d/oIbaG9fROUg/hbZYkiv61/AGFPjyDWAfI565HB HXXIfiH71XnoykKe3yYqBu/tQg//1WizyofG7FuoCbwP9gVsgZfh8WLeRAbIJVhYbXec RjHC7ENaBRi7XU9X3Xm7Ak+FBIKx3OMeKD4LE= 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:content-transfer-encoding; b=HAW7WXl/pljOhdw+o5IqeLBaBc5Yq+5JTT8L2hFquN4kVMUVzuotD1dZSQUmUsaUpf 5SUMaAP/rcFFhe99Gzsz4A4M+h5XyiflnUlkr1XdKiXYjPo+1Ibq+pelDJpHJ4h3Nauf Vx4S4IXnVYm+eXWnmx1HFp561DlGhAqZ5Y3+8= MIME-Version: 1.0 Received: by 10.210.20.17 with SMTP id 17mr3104446ebt.38.1242326288221; Thu, 14 May 2009 11:38:08 -0700 (PDT) In-Reply-To: <1242325022.6056.7.camel@mj> 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> Date: Thu, 14 May 2009 20:38:08 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 14 May 2009 18:38:15 -0000 >> > I'm fine with the change from "const void" to "const char", but we nee= d >> > 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. =A0Indeed, it's too easy to misuse a char variable by forgetting > the ampersand before it. If you define it as char [] (as done everywhere in grub2), not char, you need no ampersand. > >> > 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. =A0Besides, 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. =A0Otherwise, trust the user and turn off validation. > Not really feasible since with our design "active" driver isn't well define= d. > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko