]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Add the zpool and filesystem versions
authorDarik Horn <dajhorn@vanadac.com>
Mon, 28 Feb 2011 16:15:05 +0000 (10:15 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Feb 2011 17:46:23 +0000 (09:46 -0800)
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 <behlendorf1@llnl.gov>
module/zfs/zfs_ioctl.c

index 994d65f7e2412e86740dc0298d2be3c56d9a7b43..1d3ef0fd714c5021011ec8e54d8794794224e8c3 100644 (file)
@@ -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);