diff options
| author | David Sterba <[email protected]> | 2014-02-05 14:36:18 +0000 |
|---|---|---|
| committer | Josef Bacik <[email protected]> | 2014-03-10 19:15:51 +0000 |
| commit | 1bae30982bc86ab66d61ccb6e22792593b45d44d (patch) | |
| tree | 55363ac60e0ab2a95a4f52e9dbc5b64f44d81104 /fs/btrfs/sysfs.h | |
| parent | btrfs: send: lower memory requirements in common case (diff) | |
| download | kernel-1bae30982bc86ab66d61ccb6e22792593b45d44d.tar.gz kernel-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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
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 @@ #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, |
