]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: publish device membership in sysfs
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:07:05 +0000 (13:07 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:29 +0000 (13:19 -0800)
commit2c9c0dbfe820b19962158ca0e314d2e01d108d09
tree69ebd72d838112a3c4fefc5fba2620c3eb2fae51
parent580a2fd6911cb6712c4e0661563cb2a17cfb4e41
btrfs: publish device membership in sysfs

Now that we have the infrastructure for per-super attributes, we can
publish device membership in /sys/fs/btrfs/<fsid>/devices. The information
is published as symlinks to the block devices.

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/ctree.h
fs/btrfs/sysfs.c