linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Introduce device pool sysfs attributes
@ 2015-10-09 17:46 Anand Jain
  2015-10-09 17:46 ` [PATCH] btrfs: " Anand Jain
  0 siblings, 1 reply; 5+ messages in thread
From: Anand Jain @ 2015-10-09 17:46 UTC (permalink / raw)
  To: linux-btrfs; +Cc: dsterba, clm

This patch introduces sysfs layout for btrfs pool and devices. This
patch was previously submitted as prototype/RFC with the subject
   [PATCH RFC v2] btrfs: add sysfs layout to show volume info

And also I conducted a short survey to know if user would want the pool
attributes to be separated from the fs attributes. However it seems that
the preference is to have them merged.
   [survey] sysfs layout for btrfs

Goffredo provide nice review comment to create links like
btrfs/by_dev_uuid to point to the actual device within btrfs sysfs layout,
and I think this kind of grouping will help easy navigation, which can
be done on top of this patch.

It was quite challenging to maintain sysfs entries inline with volume
manager operations. This patch has been tested to pass my own scripts,
which exercisers btrfs volume manager and read sysfs contents, and
also has passed the usual xfstests.

Further on top of this patch, spare device and auto replace support are
being tested at my end, which I am going to send for the review soon.

This patch depends on a set of framework changes and fixes, which are
in the link below
  https://github.com/asj/btrfs-devel.git for-dave4

Anand Jain (1):
  btrfs: Introduce device pool sysfs attributes

 fs/btrfs/dev-replace.c |   6 +
 fs/btrfs/disk-io.c     |  12 --
 fs/btrfs/sysfs.c       | 533 ++++++++++++++++++++++++++++++++++++++++++++++---
 fs/btrfs/sysfs.h       |  12 +-
 fs/btrfs/volumes.c     |  45 ++++-
 fs/btrfs/volumes.h     |  10 +
 6 files changed, 575 insertions(+), 43 deletions(-)

-- 
2.4.1


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

end of thread, other threads:[~2017-05-03 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09 17:46 [PATCH] Introduce device pool sysfs attributes Anand Jain
2015-10-09 17:46 ` [PATCH] btrfs: " Anand Jain
2016-11-08 12:41   ` Anand Jain
2016-11-08 12:42   ` Anand Jain
2017-05-03 13:50     ` Fwd: " Anand Jain

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).