]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: sysfs: add debugging exports
authorDavid Sterba <dsterba@suse.com>
Thu, 13 Jun 2019 15:23:02 +0000 (17:23 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:05 +0000 (14:59 +0200)
commit6a73a1706c308e3e555c776ca0e39ae90185176a
treec3ee0429f6a117a8efb9195603b896888bf57337
parent99c9f2695d18c0557334d289334c57ffce5fa53c
btrfs: sysfs: add debugging exports

Add 'debug' directories to global sysfs and per-filesystem. This will
replace the debugfs directory. The sysfs location is simpler and builds
on top of the existing file hierarchy so there will hopefully be no more
questions about the sample debugfs file.

The directory is called 'debug' and only present under
CONFIG_BTRFS_DEBUG so this will not affect productions builds.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c