summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorUmer Saleem <[email protected]>2024-04-22 14:22:12 +0500
committerBrian Behlendorf <[email protected]>2024-08-06 12:46:51 -0700
commit5cbdd5ea4f5fc097c90f4f7ca950b3f4f689955d (patch)
tree10e5054ec38ec72f10f5c11355f8c2e7a1e28a2a /man
parentcad4c0ef1a1d038582627d7839c50074caf718a9 (diff)
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 <[email protected]> Reviewed-by: Ameer Hamza <[email protected]> Signed-off-by: Umer Saleem <[email protected]> Closes #16217
Diffstat (limited to 'man')
-rw-r--r--man/man8/zpool.85
1 files changed, 5 insertions, 0 deletions
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8
index 2b966b72b..c55644d9e 100644
--- a/man/man8/zpool.8
+++ b/man/man8/zpool.8
@@ -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