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 <[email protected]>
Reviewed-by: Ameer Hamza <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes openzfs#16217
  • Loading branch information
usaleem-ix authored and lundman committed Sep 4, 2024
1 parent dcd5289 commit 589c997
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 82 deletions.
Loading

0 comments on commit 589c997

Please sign in to comment.