path: root/disk-io.c
diff options
authorAnand Jain <>2014-08-18 16:38:19 +0800
committerDavid Sterba <>2014-10-10 18:11:32 +0200
commitd0588bfa479409b2a0f6243f894338a01a56221a (patch)
tree5ffc785f1449c901b7263d273483535237cab2c2 /disk-io.c
parent2513077f2f830b4bc83d528bfb6979eb461918bd (diff)
btrfs-progs: do a separate probe for transient replacing device
As mentioned in the kernel patch btrfs: ioctl BTRFS_IOC_FS_INFO and BTRFS_IOC_DEV_INFO miss-matched with slots The count as returned by BTRFS_IOC_FS_INFO is the number of slots that btrfs-progs would allocate for the BTRFS_IOC_DEV_INFO ioctl. Since BTRFS_IOC_DEV_INFO would loop across the seed devices, So its better ioctl BTRFS_IOC_FS_INFO returns the total_devices instead of num_devices. The above mentioned patch just does that. That is, it returns total_devices instead of num_devices. Which means we need to probe for the replacing device separately. This patch will probe for the replacing device separately. Signed-off-by: Anand Jain <> Signed-off-by: David Sterba <>
Diffstat (limited to 'disk-io.c')
0 files changed, 0 insertions, 0 deletions