Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OT9Dv-0002Q6-MC for mharc-grub-devel@gnu.org; Mon, 28 Jun 2010 03:57:47 -0400 Received: from [140.186.70.92] (port=53405 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT9Ds-0002Pp-U2 for grub-devel@gnu.org; Mon, 28 Jun 2010 03:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT9Dl-00021m-Po for grub-devel@gnu.org; Mon, 28 Jun 2010 03:57:38 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:57579) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT9Dl-00021c-Ij for grub-devel@gnu.org; Mon, 28 Jun 2010 03:57:37 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1OT9Dk-0001Wi-89 for grub-devel@gnu.org; Mon, 28 Jun 2010 07:57:36 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1OT9Di-0001nU-00; Mon, 28 Jun 2010 08:57:34 +0100 Date: Mon, 28 Jun 2010 08:57:34 +0100 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100628075733.GB6682@riva.ucam.org> References: <20100621093430.GM21862@riva.ucam.org> <4C24F998.2010706@gmail.com> <20100626103838.GU21862@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100626103838.GU21862@riva.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [RFC] [PATCH] Generate stable device names in device.map on Linux 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, 28 Jun 2010 07:57:46 -0000 On Sat, Jun 26, 2010 at 11:38:38AM +0100, Colin Watson wrote: > 2010-06-21 Colin Watson > > Change grub-mkdevicemap to emit /dev/disk/by-id/ names where > possible on Linux. > > * util/deviceiter.c (check_device): Rename to ... > (check_device_readable_unique): ... this. Update all callers. > Maintain and check a list of which devices (by canonicalized name) > have already been seen. > (clear_seen_devices): New function. > (compare_file_names) [__linux__]: New function. > (grub_util_iterate_devices): Clear the list of seen devices on exit > and (just in case) on entry. > (grub_util_iterate_devices) [__linux__]: Iterate over non-partition > devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID > seen-devices list, superseded by general code in check_device. Vladimir approved this on IRC. Committed. -- Colin Watson [cjwatson@ubuntu.com]