Improve devmapper support
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 18 May 2011 07:35:47 +0000 (09:35 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 18 May 2011 07:35:47 +0000 (09:35 +0200)
commita2491e235c8b2c20d2eac9bca6fbd90490dcffec
tree580c7d3b49257b699cc74d5f799efbd806b1d0b6
parent6ad6223e925efc5e0fa1d0d46c8620c09a06ea0b
parent118fb264ee5e92e43a57a82a7a262a08a850b8b3
Improve devmapper support

* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
(grub_util_is_lvm): New function.
(grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
than lvm if not dmraid.
Handle mapped md nodes.
* grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
(grub_util_device_is_mapped): ... this. Make always available. All users
updated.
(grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
(convert_system_partition_to_system_disk): Handle lvm, mpath and
dmraid nodes.
* include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.

Also-By: Colin Watson <cjwatson@ubuntu.com>
ChangeLog
grub-core/kern/emu/getroot.c
grub-core/kern/emu/hostdisk.c
include/grub/emu/misc.h