btrfs: add GET_SUPPORTED_FEATURES to the control device ioctls
authorDavid Sterba <dsterba@suse.com>
Wed, 17 Feb 2016 14:24:14 +0000 (15:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Feb 2016 11:56:21 +0000 (12:56 +0100)
commitc5868f8362f5620302c66848d400368f8d4b45f8
tree23238ca3d341afa5016af29323107f477c9f3c63
parent388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95
btrfs: add GET_SUPPORTED_FEATURES to the control device ioctls

The control device is accessible when no filesystem is mounted and we
may want to query features supported by the module. This is already
possible using the sysfs files, this ioctl is for parity and
convenience.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/ioctl.c
fs/btrfs/super.c