btrfs: use feature attribute names to print better error messages
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:07:02 +0000 (13:07 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:28 +0000 (13:19 -0800)
commit3b02a68a636400590dd6831a5fc046f0a7909a77
tree4768baefa0c5ed4e76e215c444e100680c992746
parentba631941ef09c10e229661219dbd1707e56131d8
btrfs: use feature attribute names to print better error messages

Now that we have the feature name strings available in the kernel via
the sysfs attributes, we can use them for printing better failure
messages from the ioctl path.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h