diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index d5c1523e1a..956be68822 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -47,6 +47,7 @@ #define DEBUG_SUBSYSTEM S_GENERIC char spl_version[16] = "SPL v" SPL_META_VERSION; +EXPORT_SYMBOL(spl_version); long spl_hostid = 0; EXPORT_SYMBOL(spl_hostid); diff --git a/module/splat/splat-ctl.c b/module/splat/splat-ctl.c index 09f0847109..ba68de2122 100644 --- a/module/splat/splat-ctl.c +++ b/module/splat/splat-ctl.c @@ -70,11 +70,14 @@ splat_open(struct inode *inode, struct file *file) kfree(info); return -ENOMEM; } + memset(info->info_buffer, 0, info->info_size); info->info_head = info->info_buffer; file->private_data = (void *)info; - return 0; + splat_print(file, "%s\n", spl_version); + + return 0; } static int