Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IqsoO-0001SE-Ih for mharc-grub-devel@gnu.org; Sat, 10 Nov 2007 11:03:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqsoM-0001QO-NL for grub-devel@gnu.org; Sat, 10 Nov 2007 11:03:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqsoK-0001Oc-Ui for grub-devel@gnu.org; Sat, 10 Nov 2007 11:03:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqsoK-0001OO-Qm for grub-devel@gnu.org; Sat, 10 Nov 2007 11:03:52 -0500 Received: from smtp-vbr14.xs4all.nl ([194.109.24.34]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IqsoK-00006t-AQ for grub-devel@gnu.org; Sat, 10 Nov 2007 11:03:52 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id lAAG3p4s044400 for ; Sat, 10 Nov 2007 17:03:51 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <4720F3CA.7070804@t-online.de> <87zlxnlasz.fsf@xs4all.nl> <4735B2B9.8070809@t-online.de> Mail-Copies-To: mgerards@xs4all.nl Date: Sat, 10 Nov 2007 17:04:25 +0100 In-Reply-To: <4735B2B9.8070809@t-online.de> (Christian Franke's message of "Sat, 10 Nov 2007 14:31:37 +0100") Message-ID: <87r6iygk8m.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] Add host open devicename check 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: Sat, 10 Nov 2007 16:03:54 -0000 Christian Franke writes: > Marco Gerards wrote: >>> .. >>> >>> 2007-10-25 Christian Franke >>> >>> * disk/host.c (grub_host_open): Add check for "host". This fixes >>> the problem that grub-emu does not find partitions. >>> >> >> Please mention the attribute change. >> >> >>> ... >>> static grub_err_t >>> -grub_host_open (const char *name __attribute((unused)), grub_disk_t disk) >>> +grub_host_open (const char *name, grub_disk_t disk) >>> { >>> + if (grub_strcmp(name, "host")) >>> + return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a host disk"); >>> >> >> Please add a space after the function name and before the "(". >> >> > > Done > > Christian > > 2007-11-10 Christian Franke > > * disk/host.c (grub_host_open): Remove attribute unused from > name parameter. Add check for "host". This fixes the problem > that grub-emu does not find partitions. Looks fine to me. -- Marco