aboutsummaryrefslogtreecommitdiffstats
path: root/modules/spl/spl-proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/spl/spl-proc.c')
-rw-r--r--modules/spl/spl-proc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/spl/spl-proc.c b/modules/spl/spl-proc.c
index 1f97b3667..94dd937a1 100644
--- a/modules/spl/spl-proc.c
+++ b/modules/spl/spl-proc.c
@@ -20,7 +20,8 @@ static unsigned long table_max = ~0;
#define CTL_SPL 0x87
enum {
- CTL_DEBUG_SUBSYS = 1, /* Debug subsystem */
+ CTL_VERSION = 1, /* Version */
+ CTL_DEBUG_SUBSYS, /* Debug subsystem */
CTL_DEBUG_MASK, /* Debug mask */
CTL_DEBUG_PRINTK, /* Force all messages to console */
CTL_DEBUG_MB, /* Debug buffer size */
@@ -372,6 +373,14 @@ static struct ctl_table spl_table[] = {
* sysctl(8) prefers to go via /proc for portability.
*/
{
+ .ctl_name = CTL_VERSION,
+ .procname = "version",
+ .data = spl_version,
+ .maxlen = sizeof(spl_version),
+ .mode = 0444,
+ .proc_handler = &proc_dostring,
+ },
+ {
.ctl_name = CTL_DEBUG_SUBSYS,
.procname = "debug_subsystem",
.data = &spl_debug_subsys,