]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: publish unknown feature bits in sysfs
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:07:00 +0000 (13:07 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:26 +0000 (13:19 -0800)
commit17222eaf50785e5ec1d901d0f65e7996f224974c
tree231cf1af2fac9af4fc9b034977111d1d5a04c795
parentca324a8ba1b372d0b6d6bad2dfded21da5497f37
btrfs: publish unknown feature bits in sysfs

With the compat and compat-ro bits, it's possible for file systems to
exist that have features that aren't supported by the kernel's file system
implementation yet still be mountable.

This patch publishes read-only info on those features using a prefix:number
format, where the number is the bit number rather than the shifted value.
e.g. "compat:12"

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