summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-tree.h
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-07-27 12:48:52 +0200
committerDavid Sterba <dsterba@suse.com>2021-08-23 13:19:14 +0200
commit4d4340c912ccc351da5578f73c68f1109dcc8e2d (patch)
tree420c14a486646beff24cd18f199a7ae3eae0ad93 /fs/btrfs/free-space-tree.h
parent5474bf400f16bd1f930627ea65b698bca09dcfc6 (diff)
btrfs: allow idmapped SNAP_CREATE/SUBVOL_CREATE ioctls
Creating subvolumes and snapshots is one of the core features of btrfs and is even available to unprivileged users. Make it possible to use subvolume and snapshot creation on idmapped mounts. This is a fairly straightforward operation since all the permission checking helpers are already capable of handling idmapped mounts. So we just need to pass down the mount's userns. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-tree.h')
0 files changed, 0 insertions, 0 deletions