btrfs: publish supported featured in sysfs
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:06:57 +0000 (13:06 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:25 +0000 (13:19 -0800)
commit079b72bca30dbc74c86c7c7825b8c34eb86ce3ee
treeede5269ab3f4dbde076d9d7e5a3042c1966b1743
parent29dfe2dc0e8f85c5656d13bb4c78a5ffca54c452
btrfs: publish supported featured in sysfs

This patch adds the ability to publish supported features to sysfs under
/sys/fs/btrfs/features.

The files are module-wide and export which features the kernel supports.

The content, for now, is just "0\n".

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/sysfs.c
fs/btrfs/sysfs.h [new file with mode: 0644]