Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OLk8R-0005Ds-Hk for mharc-grub-devel@gnu.org; Mon, 07 Jun 2010 17:45:31 -0400 Received: from [140.186.70.92] (port=59519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLk8P-0005DD-Fj for grub-devel@gnu.org; Mon, 07 Jun 2010 17:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLk8O-0005rf-68 for grub-devel@gnu.org; Mon, 07 Jun 2010 17:45:29 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:37268) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLk8O-0005rU-0D for grub-devel@gnu.org; Mon, 07 Jun 2010 17:45:28 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1OLk8M-00059j-Cu for grub-devel@gnu.org; Mon, 07 Jun 2010 21:45:26 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1OLk8L-0002Nk-00; Mon, 07 Jun 2010 22:45:25 +0100 Date: Mon, 7 Jun 2010 22:45:25 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20100607214522.GN21862@riva.ucam.org> References: <20100603162354.GX21862@riva.ucam.org> <4C0D5D37.8090508@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4C0D5D37.8090508@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Fix verbose error output when device-mapper not supported by kernel X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 21:45:30 -0000 On Mon, Jun 07, 2010 at 10:57:27PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 06/03/2010 06:23 PM, Colin Watson wrote: > > Following the merge of my dmraid-probe branch, several people have > > reported extremely verbose error output in the event that the kernel > > doesn't have device-mapper support (perhaps because the module isn't > > loaded; it's modular in the stock Debian kernel). See e.g. > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584196. The attached > > patch fixes this. OK for trunk? > > Go ahead. Thanks, done. > > (The long patch to util/deviceiter.c is almost entirely due to the extra > > 'if' causing an indentation change.) > > For such cases please send a patch with --diff-options=-bpB Sorry about that. The relevant file from the patch with those options follows, for the record. === modified file 'util/deviceiter.c' --- util/deviceiter.c 2010-01-26 14:26:16 +0000 +++ util/deviceiter.c 2010-06-03 16:00:06 +0000 @@ -33,6 +33,7 @@ #include #include #include +#include #ifdef __linux__ # if !defined(__GLIBC__) || \ @@ -676,6 +677,7 @@ grub_util_iterate_devices (int NESTED_FU } /* DM-RAID. */ + if (grub_device_mapper_supported ()) { struct dm_tree *tree = NULL; struct dm_task *task = NULL; -- Colin Watson [cjwatson@ubuntu.com]