diff options
author | Darik Horn <[email protected]> | 2011-02-28 10:15:05 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-28 09:46:23 -0800 |
commit | a23cc0a443e3da417cc1894cd3e86946f1ff3add (patch) | |
tree | adde8f6e377293c73c70c47581dc5391e136898c /module | |
parent | fdcd952b4d93f9c9d9ec89a95ef6e2964c27da95 (diff) |
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 <[email protected]>
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zfs_ioctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |