Original btrfs will not detection any missing device since there is no
notification mechanism for fs layer to detect missing device in block layer.

However we don't really need to notify fs layer upon dev remove, probing in
dev_info/rm_dev ioctl is good enough since they are the only two ioctls caring
about missing device.

This patchset will do ioctl time missing dev detection and return device missing
status in dev_info ioctl using a new member in btrfs_ioctl_dev_info_args with a
backward compatible method.

Cc: Anand Jain <anand.j...@oracle.com>
Qu Wenruo (2):
  btrfs: Add missing device check in dev_info/rm_dev ioctl
  btrfs: Add new member of btrfs_ioctl_dev_info_args.

 fs/btrfs/ioctl.c           |  4 ++++
 fs/btrfs/volumes.c         | 25 ++++++++++++++++++++++++-
 fs/btrfs/volumes.h         |  2 ++
 include/uapi/linux/btrfs.h |  5 ++++-
 4 files changed, 34 insertions(+), 2 deletions(-)

-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to