All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: linux-btrfs@vger.kernel.org
Cc: dsterba@suse.cz, clm@fb.com
Subject: [PATCH] Introduce device pool sysfs attributes
Date: Sat, 10 Oct 2015 01:46:22 +0800	[thread overview]
Message-ID: <1444412783-7070-1-git-send-email-anand.jain@oracle.com> (raw)

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


             reply	other threads:[~2015-10-09 17:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 17:46 Anand Jain [this message]
2015-10-09 17:46 ` [PATCH] btrfs: Introduce device pool sysfs attributes Anand Jain
2016-11-08 12:41   ` Anand Jain
2016-11-08 12:42   ` Anand Jain
2017-05-03 13:50     ` Fwd: " Anand Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444412783-7070-1-git-send-email-anand.jain@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.