[based on current misc-next] This adds new sysfs entry /sys/fs/btrfs/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 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/ctree.h | 6 ++++++ fs/btrfs/sysfs.c | 39 +++++++++++++++++++++++++++++---------- fs/btrfs/sysfs.h | 5 ++++- include/uapi/linux/btrfs.h | 2 ++ 4 files changed, 41 insertions(+), 11 deletions(-) -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
