btrfs-progs: skip fs with no seed when build seed/sprout mapping for fi show
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Tue, 11 Nov 2014 06:39:14 +0000 (14:39 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 4 Dec 2014 15:48:13 +0000 (16:48 +0100)
commit0c13451796be7fd3039b1ac17f8dfb95a7c8c078
tree80db7ae30c599811dc9681d0fd4080e00a47184b
parent0ffacad2906cdb8f62fb56565632160a1a82ad14
btrfs-progs: skip fs with no seed when build seed/sprout mapping for fi show

There is no need to try to build seed/sprout mapping for those btrfs
without seed devices, so just skip such fs.
We could get the total number of devices from the disk super block, if it
equals the number of items in list @fs_devices->devices, then there shouldn't
be any seed devices.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-filesystem.c