mirror_zfs/lib
Alek P 272b5d730f Add JSON output support to channel programs
The changes piggyback JSON output support on top of channel programs 
(#6558).  This way the JSON output support is targeted to scripting 
use cases and is easily maintainable since it really only touches 
one function (zfs_do_channel_program()).

This patch ports Joyent's JSON nvlist library from illumos to enable 
easy JSON printing of channel program output nvlist.  To keep the 
delta small I also took advantage of the fact that printing in
zfs_do_channel_program() was almost always done before exiting 
the program.

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #7281
2018-03-19 12:40:58 -07:00
..
libavl Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libefi Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libicp Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libnvpair Add JSON output support to channel programs 2018-03-19 12:40:58 -07:00
libshare Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libspl zpool import -d to specify device path 2018-01-26 10:49:46 -08:00
libtpool Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libunicode Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libuutil Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libzfs Report pool suspended due to MMP 2018-03-15 10:56:55 -07:00
libzfs_core OpenZFS 8677 - Open-Context Channel Programs 2018-02-08 16:05:57 -08:00
libzpool Increase code coverage for Lua libraries 2018-02-08 15:29:38 -08:00
Makefile.am Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00