HomeFreeBSD

JSON output support for zpool status

Description

JSON output support for zpool status

This commit adds support for zpool status command to displpay status
of ZFS pools in JSON format using '-j' option. Status information is
collected in nvlist which is later dumped on stdout in JSON format.
Existing options for zpool status work with '-j' flag. man page for
zpool status 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

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on May 9 2024, 11:54 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 6 2024, 7:47 PM
Parents
rG4e6b3f7e1d42: JSON output support for zpool list
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG959e963c819f: JSON output support for zpool status (authored by Umer Saleem <usaleem@ixsystems.com>).Aug 6 2024, 7:47 PM