]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Fix JSON report zones output
authorBrandon Paupore <brandon.paupore@wdc.com>
Tue, 14 Dec 2021 17:49:15 +0000 (11:49 -0600)
committerBrandon Paupore <brandon.paupore@wdc.com>
Tue, 14 Dec 2021 18:27:39 +0000 (12:27 -0600)
commita3a74340e01fab8a0458e4baf6ce12dadc65d021
tree1c739e259291e5ee2c87c979968b8e0ffeeb98ae
parent46f3b678fd079cc96698ef21d3fcbc5eb95a1547
Fix JSON report zones output

Previously multiple JSON objects would be in the output of
zns-report-zones if there were more than 1024 zones requested because of
the chunked requests sent by nvme-cli.

Fix this to output a single JSON object with one zone_list. This is done
by passing around and appending to the zone_list, then outputting all of
it once after receiving all the reports.

Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
nvme-print.c
nvme-print.h
plugins/zns/zns.c