btrfs-progs: congregate dev scan
authorAnand Jain <anand.jain@oracle.com>
Mon, 15 Jul 2013 05:30:50 +0000 (13:30 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:36 +0000 (14:32 +0200)
commit5333445574adf8415ce3b7e8b13cf8feeb39b836
tree824ba45bb8bb56b341e8c40be7b9eb7f71cf497a
parent8f7c5897e96607ef0b47ecbc2f0d3cb4df2b8c07
btrfs-progs: congregate dev scan

the dev scan to find btrfs is performed at two locations
all most the same way one at filesystem show and another
at device scan. They both follow the same steps. This
patch does not alter anything except that it brings these
two same logic into the function scan_for_btrfs so that
we can play tweaking it.

the patch which recommends to use /dev/mapper
will also need it

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-device.c
cmds-filesystem.c
utils.c
utils.h