Re: [PATCH 2/2] btrfs-progs: fi: enable fi usage for filesystem top of seed device

2017-10-23 Thread Anand Jain
On 10/23/2017 12:45 PM, Misono, Tomohiro wrote: Currently "fi usage" (and "dev usage") cannot run for the filesystem using seed device. This is because FS_INFO ioctl returns the number of devices excluding seeds, but load_device_info() tries to access valid device from devid 0 to max_id, and

[PATCH 2/2] btrfs-progs: fi: enable fi usage for filesystem top of seed device

2017-10-22 Thread Misono, Tomohiro
Currently "fi usage" (and "dev usage") cannot run for the filesystem using seed device. This is because FS_INFO ioctl returns the number of devices excluding seeds, but load_device_info() tries to access valid device from devid 0 to max_id, and results in accessing seeds too (thus causing