diff options
author | David Sterba <dsterba@suse.cz> | 2014-02-05 09:36:18 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fb.com> | 2014-03-10 15:15:51 -0400 |
commit | 1bae30982bc86ab66d61ccb6e22792593b45d44d (patch) | |
tree | 55363ac60e0ab2a95a4f52e9dbc5b64f44d81104 /fs/btrfs/sysfs.h | |
parent | ace0105076a493c04e6d5e91e6a19f222d6b3875 (diff) |
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.h | 5 |
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 @@ | |||
1 | #ifndef _BTRFS_SYSFS_H_ | 1 | #ifndef _BTRFS_SYSFS_H_ |
2 | #define _BTRFS_SYSFS_H_ | 2 | #define _BTRFS_SYSFS_H_ |
3 | 3 | ||
4 | /* | ||
5 | * Data exported through sysfs | ||
6 | */ | ||
7 | extern u64 btrfs_debugfs_test; | ||
8 | |||
4 | enum btrfs_feature_set { | 9 | enum btrfs_feature_set { |
5 | FEAT_COMPAT, | 10 | FEAT_COMPAT, |
6 | FEAT_COMPAT_RO, | 11 | FEAT_COMPAT_RO, |