inspection: Handle MD devices in fstab
authorMatthew Booth <mbooth@redhat.com>
Fri, 2 Dec 2011 14:04:19 +0000 (14:04 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 2 Dec 2011 14:12:11 +0000 (14:12 +0000)
commit922c3623c63b137ce940c574791104744e716c4a
treeeb19485a0f052471b7bc36a9fc0fde8d907cd49d
parent655f8037def7742a608fb272004eec51424ac31d
inspection: Handle MD devices in fstab

This patch fixes inspection when fstab contains devices md devices
specified as /dev/mdN. The appliance creates these devices without reference to
the guest's mdadm.conf so, for e.g. /dev/md0 in the guest will often be created
as /dev/md127 in the appliance. With this patch, we match the uuids of detected
md devices against uuids specified in mdadm.conf, and map them appropriately
when we encounter them in fstab.
src/inspect_fs_unix.c