summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-02-05 15:36:18 +0100
committerJosef Bacik <jbacik@fb.com>2014-03-10 20:15:51 +0100
commit1bae30982bc86ab66d61ccb6e22792593b45d44d (patch)
tree55363ac60e0ab2a95a4f52e9dbc5b64f44d81104 /fs/btrfs/sysfs.h
parentbtrfs: send: lower memory requirements in common case (diff)
downloadlinux-1bae30982bc86ab66d61ccb6e22792593b45d44d.tar.xz
linux-1bae30982bc86ab66d61ccb6e22792593b45d44d.zip
btrfs: add simple debugfs interface
Help during debugging to export various interesting infromation and tunables without the need of extra mount options or ioctls. Usage: * declare your variable in sysfs.h, and include where you need it * define the variable in sysfs.c and make it visible via debugfs_create_TYPE Depends on CONFIG_DEBUG_FS. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r--fs/btrfs/sysfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h
index f3cea3710d44..9ab576318a84 100644
--- a/fs/btrfs/sysfs.h
+++ b/fs/btrfs/sysfs.h
@@ -1,6 +1,11 @@
#ifndef _BTRFS_SYSFS_H_
#define _BTRFS_SYSFS_H_
+/*
+ * Data exported through sysfs
+ */
+extern u64 btrfs_debugfs_test;
+
enum btrfs_feature_set {
FEAT_COMPAT,
FEAT_COMPAT_RO,