mirror_zfs/lib/libspl
Umer Saleem 4e6b3f7e1d JSON output support for zpool list
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
2024-08-06 12:47:04 -07:00
..
include JSON output support for zpool list 2024-08-06 12:47:04 -07:00
os libzfs: use zfs_strerror() in place of strerror() 2024-01-29 09:54:57 -08:00
assert.c backtrace: rework for signal safety 2024-05-14 09:48:51 -07:00
atomic.c Add membar_sync 2022-09-20 15:32:44 -07:00
backtrace.c spl: fix compilation without HAVE_BACKTRACE 2024-05-29 10:51:01 -07:00
getexecname.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
libspl_impl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
list.c Remove list_size struct member from list implementation 2024-01-26 14:46:42 -08:00
Makefile.am libspl: lift backtrace into a separate file 2024-05-14 09:48:45 -07:00
mkdirp.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
page.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
strlcat.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
strlcpy.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
timestamp.c JSON output support for zpool list 2024-08-06 12:47:04 -07:00