grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] [PATCH] Generate stable device names in device.map on Linux


From: Colin Watson
Subject: Re: [RFC] [PATCH] Generate stable device names in device.map on Linux
Date: Mon, 28 Jun 2010 08:57:34 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Sat, Jun 26, 2010 at 11:38:38AM +0100, Colin Watson wrote:
> 2010-06-21  Colin Watson  <address@hidden>
> 
>       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                                       address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]