linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Kernel space btrfs missing device detection.
@ 2014-05-06  6:33 Qu Wenruo
  2014-05-06  6:33 ` [RFC PATCH 1/2] btrfs: Add missing device check in dev_info/rm_dev ioctl Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Qu Wenruo @ 2014-05-06  6:33 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Anand Jain

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.Jain@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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-05-21 18:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06  6:33 [RFC PATCH 0/2] Kernel space btrfs missing device detection Qu Wenruo
2014-05-06  6:33 ` [RFC PATCH 1/2] btrfs: Add missing device check in dev_info/rm_dev ioctl Qu Wenruo
2014-05-07  8:00   ` Anand Jain
2014-05-07  8:02     ` Qu Wenruo
2014-05-21  3:12     ` Qu Wenruo
2014-05-21  3:54       ` Anand Jain
2014-05-21  4:15         ` Qu Wenruo
2014-05-21 18:26           ` Brendan Hide
2014-05-21  3:47   ` Anand Jain
2014-05-06  6:33 ` [RFC PATCH 2/2] btrfs: Add new member of btrfs_ioctl_dev_info_args Qu Wenruo
2014-05-06 18:10 ` [RFC PATCH 0/2] Kernel space btrfs missing device detection Goffredo Baroncelli
2014-05-07  1:48   ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).