From a23cc0a443e3da417cc1894cd3e86946f1ff3add Mon Sep 17 00:00:00 2001 From: Darik Horn Date: Mon, 28 Feb 2011 10:15:05 -0600 Subject: Add the zpool and filesystem versions Print the supported zpool and filesystem versions at module load time. This change removes an ambiguity and adds information that system administrators care about. The phrase "ZFS pool version %s" is the same as zpool upgrade -v so that the operator is familiar with the message. ZFS: Loaded module v0.6.0, ZFS pool version 28, ZFS filesystem version 5 ZFS: Unloaded module v0.6.0 Signed-off-by: Brian Behlendorf --- module/zfs/zfs_ioctl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/zfs') diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index 994d65f7e..1d3ef0fd7 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -5178,8 +5178,10 @@ _init(void) mutex_init(&zfs_share_lock, NULL, MUTEX_DEFAULT, NULL); #endif /* HAVE_SHARE */ - printk(KERN_NOTICE "ZFS: Loaded ZFS Filesystem v%s%s\n", - ZFS_META_VERSION, ZFS_DEBUG_STR); + printk(KERN_NOTICE "ZFS: Loaded module v%s%s, " + "ZFS pool version %s, ZFS filesystem version %s\n", + ZFS_META_VERSION, ZFS_DEBUG_STR, + SPA_VERSION_STRING, ZPL_VERSION_STRING); return (0); @@ -5214,7 +5216,7 @@ _fini(void) tsd_destroy(&zfs_fsyncer_key); tsd_destroy(&rrw_tsd_key); - printk(KERN_NOTICE "ZFS: Unloaded ZFS Filesystem v%s%s\n", + printk(KERN_NOTICE "ZFS: Unloaded module v%s%s\n", ZFS_META_VERSION, ZFS_DEBUG_STR); return (0); -- cgit v1.2.3