Skip to content

Commit

Permalink
JSON output support for zpool list
Browse files Browse the repository at this point in the history
This commit adds support for zpool list command to output the list of
ZFS pools in JSON format using '-j' option.. Information about available
pools is collected in nvlist which is later printed to stdout in JSON
format.

Existing options for zfs list command work with '-j' flag. man page for
zpool list is updated accordingly.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #16217
  • Loading branch information
usaleem-ix authored and behlendorf committed Aug 6, 2024
1 parent eb2b824 commit 4e6b3f7
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 82 deletions.
Loading

0 comments on commit 4e6b3f7

Please sign in to comment.