Re: [PATCH 2/2] btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

2014-11-09 Thread Gui Hecheng
On Sat, 2014-11-08 at 19:47 +, Mike Fleetwood wrote: > On 7 November 2014 18:16, David Sterba wrote: > > On Fri, Nov 07, 2014 at 10:07:43AM +0800, Gui Hecheng wrote: > >> The @fi_args->num_devices in @get_fs_info() does not include seed devices. > >> We could just correct it by searching the c

Re: [PATCH 2/2] btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

2014-11-08 Thread Mike Fleetwood
On 7 November 2014 18:16, David Sterba wrote: > On Fri, Nov 07, 2014 at 10:07:43AM +0800, Gui Hecheng wrote: >> 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 whic

Re: [PATCH 2/2] btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

2014-11-07 Thread anand jain
really nice fix. Thanks Gui. Anand On 08/11/2014 02:16, David Sterba wrote: On Fri, Nov 07, 2014 at 10:07:43AM +0800, Gui Hecheng wrote: 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

Re: [PATCH 2/2] btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

2014-11-07 Thread David Sterba
On Fri, Nov 07, 2014 at 10:07:43AM +0800, Gui Hecheng wrote: > 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 Hec

[PATCH 2/2] btrfs-progs: fix wrong num_devices for btrfs fi show with seed devices

2014-11-06 Thread Gui Hecheng
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 --- *Note* This is just a temporary workaround to fix this proble