Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KSab7-0002Tv-D8 for mharc-grub-devel@gnu.org; Mon, 11 Aug 2008 12:50:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSab5-0002Sj-G1 for grub-devel@gnu.org; Mon, 11 Aug 2008 12:50:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSab2-0002Qu-Uu for grub-devel@gnu.org; Mon, 11 Aug 2008 12:50:18 -0400 Received: from [199.232.76.173] (port=38642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSab2-0002Ql-R2 for grub-devel@gnu.org; Mon, 11 Aug 2008 12:50:16 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:61174) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSab2-0004FK-Cq for grub-devel@gnu.org; Mon, 11 Aug 2008 12:50:16 -0400 Received: from [85.180.26.36] (e180026036.adsl.alicedsl.de [85.180.26.36]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1KSab11gBe-0007LQ; Mon, 11 Aug 2008 18:50:15 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20080811142856.GB15950@thorin> References: <1218454936.4035.19.camel@fz.local> <20080811142856.GB15950@thorin> Content-Type: multipart/mixed; boundary="=-gYSMv1atAs8QJIF6wkYg" Date: Mon, 11 Aug 2008 18:50:18 +0200 Message-Id: <1218473418.6939.23.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Provags-ID: V01U2FsdGVkX1/mntHVf7JvKbVUCZ3SYO8Sg7RUVPBKqqlvjJy GG+TKR0vqS9MiXHr1KY01Fc2qnRmugiER9O2NyJUTMjwifIikj pmzrpqKl4WSaThgF/PhHs3p0w4vqibb 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 16:50:19 -0000 --=-gYSMv1atAs8QJIF6wkYg Content-Type: text/plain Content-Transfer-Encoding: 7bit Am Montag, den 11.08.2008, 16:28 +0200 schrieb Robert Millan: > GRUB_MOD_INIT(raid) could handle them just fine, with something like: > > grub_print_error (); > grub_errno = GRUB_ERR_NONE; > > if an error was found. > Thanks for your hint, this is now something I thought initially with the invalid BSD partitions. Showing an error but not aborting the whole thing. Attached is now a patch wich just adds these 2 things. I should really take me the time to just look at the Sourcecode and trying to understand it :) I don't care much about the changelog, if you e.g. don't like the 2nd sentence then just remove it please on commit. 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 underlying layer. --=-gYSMv1atAs8QJIF6wkYg 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) --=-gYSMv1atAs8QJIF6wkYg--