]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_util.c
Add option [-V|--version] to emit version string
authorTerraTech <1118433+TerraTech@users.noreply.github.com>
Wed, 10 Apr 2019 07:43:28 +0000 (00:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Apr 2019 19:24:06 +0000 (12:24 -0700)
commit50478c6dadc2accfab5bfe72d278ede17c2e13cf
treedb8bacb6f2193e7c20b311780f7516549b24f798
parent8750edf1f75e4f02c353be490309940f11115f23
Add option [-V|--version] to emit version string

Add the 'zfs version' and 'zpool version' subcommands to display
the version of the user space utilities and loaded zfs kernel
module.  For example:

$ zfs version
zfs-0.8.0-rc3_169_g67e0366b88
zfs-kmod-0.8.0-rc3_169_g67e0366b88

The '-V' and '--version' aliases were added to support the
common convention of using 'zfs --version` to obtain the version
information.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: TerraTech <1118433+TerraTech@users.noreply.github.com>
Closes #2501
Closes #8567
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c
include/libzfs.h
lib/libzfs/libzfs_util.c
man/man8/zfs.8
man/man8/zpool.8