changelog: v1 -> v2 - completely reimplement 1st/2nd ioctl to have user friendly api - various cleanup, remove unnecessary goto ===
This adds three new unprivileged ioctls: 1st patch: ioctl which returns subvolume information of ROOT_ITEM and ROOT_BACKREF 2nd patch: ioctl which returns subvolume information of ROOT_REF (without subvolume name) 3rd patch: user version of ino_lookup ioctl which also peforms permission check. They will be used to implement user version of "subvolume list/show" etc in user tools. See each commit log for more details. The rfc implementation of btrfs-progs can be found in the ML titled as follows: [RFC PATCH v2 0/8] btrfs-progs: Allow normal user to call "subvolume list/show" Tomohiro Misono (3): btrfs: Add unprivileged ioctl which returns subvolume information btrfs: Add unprivileged ioctl which returns subvolume's ROOT_REF btrfs: Add unprivileged version of ino_lookup ioctl fs/btrfs/ioctl.c | 413 +++++++++++++++++++++++++++++++++++++++++++++ include/uapi/linux/btrfs.h | 84 ++++++++++ 2 files changed, 497 insertions(+) -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html