Loading
examples/nvme/identify: add a limit to the zns zone report dump option
Add an optional limit, -z N, to the zone report dump option -z. The variable g_zone_report_limit replaces the MAX_ZONE_DESC_ENTRIES such that the maximum-number of zone-descriptors is overwritable. It also replaces g_zone_report_full as it is represented by the limit-value 0, e.g. "no limit" dump the full report. The print of the section-header now includes the total amount of zones and the limit. With this information, the header's width varies. A helper-function, print_uline(), for printing an "underline" using a given marker, is also added. Signed-off-by:Simon A. F. Lund <simon.lund@samsung.com> Change-Id: Ic8abead693ed83bb8612eef1f35605098ccade84 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6036 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com>