From d9a45283ce567c3d6659904734f0b831e9d47b16 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 9 Jan 2009 16:28:26 -0800 Subject: [PATCH] Add ZFS load/unload console messages --- module/zfs/zfs_ioctl.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index f23e3c38ef..e42513365a 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -3181,13 +3181,26 @@ _fini(void) } #ifdef HAVE_SPL +int +__init(void) +{ + int rc; + + rc = _init(); + if (!rc) + printk(KERN_INFO "ZFS: Loaded v%s\n", VERSION); + + return rc; +} + void __fini(void) { - _fini(); + (void)_fini(); + printk(KERN_INFO "ZFS: Unloaded v%s\n", VERSION); } -module_init(_init); +module_init(__init); module_exit(__fini); MODULE_AUTHOR("Sun Microsystems, Inc");