btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 13 Nov 2014 01:19:29 +0000 (09:19 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 4 Dec 2014 15:48:13 +0000 (16:48 +0100)
commit7269fa15702ba7f925936a31125571ebb4398965
treeaa1386d49b3cda47cae3b31b7e7efcee7af41487
parent9f9330200f2be7aca86a20a16c2b0a99ebbaa044
btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

The @fi_args->num_devices in @get_fs_info() does not include seed devices.
We could just correct it by searching the chunk tree and count how
many dev_items there are in total which includes seed devices.

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