Scan /dev/md and device mapper devices last
commit8f01235dd8cf65c064f1b979d24a989ca296ea33
authorChris Mason <chris.mason@oracle.com>
Tue, 21 Feb 2012 20:56:10 +0000 (21 15:56 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 22 Feb 2012 15:59:55 +0000 (22 10:59 -0500)
treebd261d82575a8659d30dc1e97dc8e70049679a72
parent32eff71182a6aff67324357572308c225b2d5e34
Scan /dev/md and device mapper devices last

When we're using multipath or raid0, it is possible
that btrfs dev scan will find one of the component devices
instead of the proper virtual device the kernel creates.

We want to make sure the kernel scans the virtual devices last,
since it always remembers the last device it finds with a given fsid.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
utils.c
volumes.c