linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anandsuveer@gmail.com>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 2/5] btrfs: sysfs, rename device_link add,remove functions
Date: Tue, 3 Dec 2019 13:42:29 +0800	[thread overview]
Message-ID: <0578af0d-dcd4-36e8-65c3-31707f51c50b@oracle.com> (raw)
In-Reply-To: <20191126164001.GJ2734@twin.jikos.cz>

On 11/27/19 12:40 AM, David Sterba wrote:
> On Thu, Nov 21, 2019 at 05:33:31PM +0800, Anand Jain wrote:
>> In preparation to add btrfs_device::dev_state attribute in
>>    /sys/fs/btrfs/UUID/devices/
> 
> But we don't want to add any attributes to that directory, is this some
> leftover from the previous iterations?

No actually. We discussed to add <devid>/dev_state under UUID/devices
here [1].
[1]
https://lore.kernel.org/linux-btrfs/516598e6-4968-4535-cf6b-12402518b7cc@oracle.com/

Looks like you still prefer separate UUID/devinfo directory as you
mentioned here [2]

[2]
https://lore.kernel.org/linux-btrfs/20191118154556.GJ3001@twin.jikos.cz/

?

Thanks, Anand

>> Rename btrfs_sysfs_add_device_link() and btrfs_sysfs_rm_device_link() to
>> btrfs_sysfs_add_devices_attr() and btrfs_sysfs_remove_devices_attr() as
>> these functions is going to create more attributes rather than just the
>> link to the disk. No functional changes.
> 
> I think the function name matches what it does, it really links the
> device.
> 




  reply	other threads:[~2019-12-03  5:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-21  9:33 [PATCH v2 0/5] btrfs: sysfs, cleanups Anand Jain
2019-11-21  9:33 ` [PATCH v2 1/5] btrfs: sysfs, rename devices kobject holder to devices_kobj Anand Jain
2019-11-26 16:41   ` David Sterba
2019-11-21  9:33 ` [PATCH v2 2/5] btrfs: sysfs, rename device_link add,remove functions Anand Jain
2019-11-26 16:40   ` David Sterba
2019-12-03  5:42     ` Anand Jain [this message]
2019-11-21  9:33 ` [PATCH v2 3/5] btrfs: sysfs, btrfs_sysfs_add_fsid() drop unused argument parent Anand Jain
2019-11-21  9:33 ` [PATCH v2 4/5] btrfs: sysfs, rename btrfs_sysfs_add_device() Anand Jain
2019-11-21  9:33 ` [PATCH v2 5/5] btrfs: sysfs, merge btrfs_sysfs_add devices_kobj and fsid Anand Jain
2019-11-26 16:44   ` David Sterba
2019-11-26 16:54 ` [PATCH v2 0/5] btrfs: sysfs, cleanups David Sterba

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=0578af0d-dcd4-36e8-65c3-31707f51c50b@oracle.com \
    --to=anandsuveer@gmail.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 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).