Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KSf26-0007Gs-Lb for mharc-grub-devel@gnu.org; Mon, 11 Aug 2008 17:34:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSf24-0007EW-Pz for grub-devel@gnu.org; Mon, 11 Aug 2008 17:34:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSf23-0007CN-0r for grub-devel@gnu.org; Mon, 11 Aug 2008 17:34:28 -0400 Received: from [199.232.76.173] (port=35618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSf22-0007C4-RW for grub-devel@gnu.org; Mon, 11 Aug 2008 17:34:26 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:60695) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSf22-0002YB-86 for grub-devel@gnu.org; Mon, 11 Aug 2008 17:34:26 -0400 Received: from [85.180.26.36] (e180026036.adsl.alicedsl.de [85.180.26.36]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1KSf202WvW-0007MY; Mon, 11 Aug 2008 23:34:24 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20080811212241.GB6883@thorin> References: <1218454936.4035.19.camel@fz.local> <20080811142856.GB15950@thorin> <1218473418.6939.23.camel@fz.local> <20080811212241.GB6883@thorin> Content-Type: multipart/mixed; boundary="=-SO0jvmIUhRcbP7YAxz6U" Date: Mon, 11 Aug 2008 23:34:28 +0200 Message-Id: <1218490468.31147.6.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Provags-ID: V01U2FsdGVkX1+C3Ij7dtMQTx8niBCWIOqzMtPugVibjxSuX7x WtbGoHkP9IolrHmVOswIMO0hfrcYgj3bd/Uq2iiWrU066lF4hN Jm23qL8KzXOjSwRiKFtbZfR5RwNwDAw X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Subject: Re: [PATCH] just skip over invalid/unsupported RAID 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: Mon, 11 Aug 2008 21:34:29 -0000 --=-SO0jvmIUhRcbP7YAxz6U Content-Type: text/plain Content-Transfer-Encoding: 7bit Am Montag, den 11.08.2008, 23:22 +0200 schrieb Robert Millan: > > IIRC, the difference is that with the invalid BSD partitions, rising errors > is ineffective as there can't be anyone to handle them (since we're inside > an iteration). Ah, yes that's a `little' difference between that and the RAID module. > That'd be the upper layer. E.g. Right > > + grub_print_error(); > > Missing space here (before the parenthesis). Yeah, right. I'm still not that used to it. I never did that before on my own code, but I think a space there isn't that bad :) 2008-08-11 Felix Zielcke * disk/raid.c (GRUB_MOD_INIT): Use grub_print_error() to show RAID errors and reset grub_errno. Do not give errors to the upper layer. --=-SO0jvmIUhRcbP7YAxz6U Content-Disposition: attachment; filename=raid.diff Content-Type: text/x-patch; name=raid.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: disk/raid.c =================================================================== --- disk/raid.c (Revision 1799) +++ disk/raid.c (Arbeitskopie) @@ -581,6 +581,8 @@ { grub_device_iterate (&grub_raid_scan_device); grub_disk_dev_register (&grub_raid_dev); + grub_print_error (); + grub_errno = GRUB_ERR_NONE; } GRUB_MOD_FINI(raid) --=-SO0jvmIUhRcbP7YAxz6U--