HomeFreeBSD

JSON output support for zfs list

Description

JSON output support for zfs list

This commit adds support for JSON output for zfs list using '-j' option.
Information is collected in JSON format which is later printed in jSON
format. Existing options for zfs list also work with '-j'. man pages are
updated with relevant information.

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 Apr 18 2024, 5:09 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 6 2024, 7:46 PM
Parents
rGaa15b60e5859: JSON output support for zfs version and zfs get
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG443abfc71d71: JSON output support for zfs list (authored by Umer Saleem <usaleem@ixsystems.com>).Aug 6 2024, 7:46 PM