]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add debug sysfs attribute set
authorBrian Foster <bfoster@redhat.com>
Tue, 9 Sep 2014 01:52:42 +0000 (11:52 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 9 Sep 2014 01:52:42 +0000 (11:52 +1000)
commit6db98c846acc7d2bca5ab62f6afe8b6ab1367601
tree841419a2f24fe12359ff4602ae26885667891efd
parentc86411b4556ddbf52057d73d4fd34edff9b3d0a1
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>
fs/xfs/xfs_super.c
fs/xfs/xfs_sysfs.c
fs/xfs/xfs_sysfs.h