summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_sysfs.h
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2014-09-09 03:52:42 +0200
committerDave Chinner <david@fromorbit.com>2014-09-09 03:52:42 +0200
commit65b65735fede29b516fed1d8c2391e8bc373b805 (patch)
tree841419a2f24fe12359ff4602ae26885667891efd /fs/xfs/xfs_sysfs.h
parentxfs: add a few more verifier tests (diff)
downloadlinux-65b65735fede29b516fed1d8c2391e8bc373b805.tar.xz
linux-65b65735fede29b516fed1d8c2391e8bc373b805.zip
xfs: add debug sysfs attribute set
Create a top-level debug directory for global debug sysfs attributes. This directory is added and removed on XFS module initialization and removal respectively for DEBUG mode kernels only. It typically resides at /sys/fs/xfs/debug. It is located at the top level of the xfs sysfs hierarchy as attributes might define global behavior or behavior that must be configured before an xfs mount is available (e.g., log recovery behavior). Define the global debug kobject that represents the debug sysfs directory and add generic attribute show/store helpers to support future attributes. No debug attributes are exported as of yet. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_sysfs.h')
-rw-r--r--fs/xfs/xfs_sysfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sysfs.h b/fs/xfs/xfs_sysfs.h
index 54a2091183c0..240eee35f342 100644
--- a/fs/xfs/xfs_sysfs.h
+++ b/fs/xfs/xfs_sysfs.h
@@ -20,6 +20,7 @@
#define __XFS_SYSFS_H__
extern struct kobj_type xfs_mp_ktype; /* xfs_mount */
+extern struct kobj_type xfs_dbg_ktype; /* debug */
extern struct kobj_type xfs_log_ktype; /* xlog */
static inline struct xfs_kobj *