]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/ioctl.c
btrfs: Add unprivileged ioctl which returns subvolume information
authorTomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Mon, 21 May 2018 01:09:42 +0000 (10:09 +0900)
committerDavid Sterba <dsterba@suse.com>
Thu, 31 May 2018 09:35:23 +0000 (11:35 +0200)
commitb64ec075bded2b30bcd90af5aa5256d2237c885d
tree6871372a89687f1f2fb9d63c920cb1fa922cb935
parentad7e1a740d940cf7da1beb332a1095bcda40c747
btrfs: Add unprivileged ioctl which returns subvolume information

Add new unprivileged ioctl BTRFS_IOC_GET_SUBVOL_INFO which returns
the information of subvolume containing this inode.
(i.e. returns the information in ROOT_ITEM and ROOT_BACKREF.)

Reviewed-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Tested-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
[ minor style fixes, update struct comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
include/uapi/linux/btrfs.h