btrfs-progs: Add missing devices check for mounted btrfs.
commit206efb60cbe3049e0d44c6da3c1909aeee18f813
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 7 Feb 2014 07:07:19 +0000 (7 15:07 +0800)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:10 +0000 (21 06:23 -0700)
tree497e1abcb27ace78dc84b945125c496085d78192
parent1484081f6113cd33ad538a4a50f332754dbcc873
btrfs-progs: Add missing devices check for mounted btrfs.

In btrfs/003 of xfstest, it will check whether btrfs fi show can find
missing devices.

But before the patch, btrfs-progs will not check whether device missing
if given a mounted btrfs mountpoint/block device.
This patch fixes the bug and will pass btrfs/003.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Cc: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-filesystem.c