From: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: [PATCH v2 0/2] btrfs: sysfs: Add entry which shows rmdir(2) can work for subvolume
Date: Wed, 16 May 2018 17:09:25 +0900 [thread overview]
Message-ID: <cover.1526457206.git.misono.tomohiro@jp.fujitsu.com> (raw)
[based on current misc-next]
-----
changelog
v1 -> v2
- Explicitly set start of enum btrfs_feature_set as 0 in 1st patch
- Create new sysfs group which shows static feature (i.e. features
which only depends on kernel version). See 2nd path.
-----
This adds new sysfs entry
/sys/fs/btrfs/static_features/rmdir_subvol
to indicate that the kernel can delete a subvolume by rmdir(2),
which is allowed by: https://www.spinics.net/lists/linux-btrfs/msg76938.html
The aim of adding a entry is to enable a user program (e.g. xfstest)
to detect a feature.
The first patch is a cleanup and the second one is a main part.
Tomohiro Misono (2):
btrfs: sysfs: Use enum/define value intead of magic number
btrfs: sysfs: Add entry which shows rmdir(2) can work for subvolume
fs/btrfs/sysfs.c | 40 +++++++++++++++++++++++++++++++++++-----
fs/btrfs/sysfs.h | 4 ++--
2 files changed, 37 insertions(+), 7 deletions(-)
--
2.14.3
next reply other threads:[~2018-05-16 8:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-16 8:09 Tomohiro Misono [this message]
2018-05-16 8:09 ` [PATCH v2 1/2] btrfs: sysfs: Use enum/define value intead of magic number Tomohiro Misono
2018-05-16 8:09 ` [PATCH v2 2/2] btrfs: sysfs: Add entry which shows rmdir(2) can work for subvolume Tomohiro Misono
2018-05-16 15:19 ` David Sterba
2018-05-17 5:24 ` [PATCH v3 " Misono Tomohiro
2018-05-17 16:49 ` 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=cover.1526457206.git.misono.tomohiro@jp.fujitsu.com \
--to=misono.tomohiro@jp.fujitsu.com \
--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.