mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
JSON output support for zpool version
This commit adds support for zpool version to output in JSON format using '-j' option. Userland kernel module version is collected in nvlist which is later displayed in JSON format. man page for zpool is updated. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Ameer Hamza <ahamza@ixsystems.com> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes #16217
This commit is contained in:
committed by
Brian Behlendorf
parent
cad4c0ef1a
commit
5cbdd5ea4f
@@ -38,6 +38,7 @@
|
||||
.Fl ?V
|
||||
.Nm
|
||||
.Cm version
|
||||
.Op Fl j
|
||||
.Nm
|
||||
.Cm subcommand
|
||||
.Op Ar arguments
|
||||
@@ -79,10 +80,14 @@ Displays a help message.
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm version
|
||||
.Op Fl j
|
||||
.Xc
|
||||
Displays the software version of the
|
||||
.Nm
|
||||
userland utility and the ZFS kernel module.
|
||||
Use
|
||||
.Fl j
|
||||
option to output in JSON format.
|
||||
.El
|
||||
.
|
||||
.Ss Creation
|
||||
|
||||
Reference in New Issue
Block a user