All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: dsterba@suse.cz
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2] btrfs: introduce BTRFS_IOC_GET_DEVS
Date: Wed, 26 Feb 2014 11:03:59 +0800	[thread overview]
Message-ID: <530D599F.6090500@oracle.com> (raw)
In-Reply-To: <20140225175133.GB16073@twin.jikos.cz>



On 26/02/2014 01:51, David Sterba wrote:
> On Mon, Feb 24, 2014 at 07:48:45PM +0800, Anand Jain wrote:
>> The user land progs needs   a simple way to see
>> the raw list of disks and its parameters as seen
>> by the btrfs kernel.
>> As of now btrfs-devlist uses this ioctl.
>
> As discussed before together with Hugo, the ioctl could exist parallel
> to sysfs export of the device data. From that point it's easier to
> maintain and update a set of sysfs files than an ioctl. The way you
> suggest it right now lacks future-proof extensibility and backward
> compatibility handling.
>
> The userspace code is said to be a small and debug program, the sysfs
> would IMHO satsify it needs as well, so I suggest not to continue on the
> ioctl approach.


  sysfs interface has its advantage, but please lets not clutter
  it with the debug info as it just don't belong there. And one
  should be care full enough not to introduce regressions [1]
  when writing sysfs interfaces (sysfs has to be "managed"
  VS debug-friendly memory-dump/ioctl-dump).

  Next, btrfs-kernel device management isn't just ready
  fully[2] so that sysfs interface can be developed as
  of now. It better wait.

[1]
    https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg31432.html
    http://comments.gmane.org/gmane.comp.file-systems.btrfs/31915

[2] btrfs-kernel has no idea when disk disappears.
     To get this done we appear to need more enhancements
     related to the usage of kobjects with in kernel.

Thanks, Anand

      reply	other threads:[~2014-02-26  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-24 11:48 [PATCH v2] btrfs-progs: introduce btrfs-devlist Anand Jain
2014-02-24 11:48 ` [PATCH v2] btrfs: introduce BTRFS_IOC_GET_DEVS Anand Jain
2014-02-25 17:51   ` David Sterba
2014-02-26  3:03     ` Anand Jain [this message]

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=530D599F.6090500@oracle.com \
    --to=anand.jain@oracle.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.