Spdk/examples/nvme
James Bergsten 5acf617c6e nvme: add functions to pretty-print commands and completions
This change attempts to address the Trello request to decode I/O errors in
NVMe hello_world example.

See https://trello.com/c/MzJJw7hM/2-decode-io-errors-in-nvme-helloworld-example

As part of this change, spdk_nvme_cpl_get_status_string was declared
in nvme.h, and spdk_nvme_qpair_print_command and
spdk_nvme_qpair_print_completion were renamed and added to nvme.h,
allowing all three to used "externally."

To test the failing paths, two compile time defines were added to force a
write or read error (bad LBA) respectively.

As the example does a read after write, if the write fails, the example fails.

Signed-off-by: James Bergsten <jamesx.bergsten@intel.com>
Change-Id: Ib94b4a02495eb40966e3f49517a5bdf64485538a
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457076
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-07-15 07:47:03 +00:00
..
arbitration examples/nvme: fix memory leaks of arbitration case 2019-06-19 03:48:16 +00:00
cmb_copy build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
fio_plugin nvme/fio_plugin: optimize metadata buffer usage 2019-07-15 03:43:45 +00:00
hello_world nvme: add functions to pretty-print commands and completions 2019-07-15 07:47:03 +00:00
hotplug build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
identify identify: print metadata type regardless of PI type 2019-07-12 12:39:38 +00:00
nvme_manage opal: add support for getting locking range info 2019-07-05 02:23:28 +00:00
perf examples/nvme/perf: Optional VMD enumeration 2019-06-18 03:59:36 +00:00
reserve build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
Makefile cmb_copy: An example app that uses NVMe CMBs 2018-02-14 12:36:01 -05:00