Spdk/examples/nvme
Niklas Cassel 998ec7b094 nvme/hello_world: for zoned namespaces, reset the zone before write
If the namespace is a zoned namespace, reset the zone starting at
LBA 0, before doing the "Hello world!" write to LBA 0.

This is done to ensure that the write pointer for the first zone
is at LBA 0.

We need to do this since a regular write on a zoned namespace
to an LBA that is not equal to the write pointer results in a
Zone Invalid Write I/O error.

Therefore, if we don't do a zone reset before doing the write,
the write would fail if there already were data written to the
first zone. (E.g. if the user ran the hello_world example twice.)

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Change-Id: I0ee972b4cc40bc5ebd476105d0b180a07cfe5a76
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4683
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-10-20 12:18:56 +00:00
..
abort event/app: allow to enable log flag for release builds 2020-10-15 08:23:39 +00:00
arbitration example/nvme: Replace next pointer by TAILQ except for fio_plugin and perf 2020-10-05 08:27:56 +00:00
cmb_copy nvme/cmb_copy: disable submission queue in CMB 2020-04-22 09:18:22 +00:00
fio_plugin example/nvme_fio_plugin: Replace next pointer by TAILQ 2020-10-05 08:27:56 +00:00
hello_world nvme/hello_world: for zoned namespaces, reset the zone before write 2020-10-20 12:18:56 +00:00
hotplug build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
identify examples/nvme: export DPDK single file descriptor memory segments as input parameter 2020-10-16 08:16:50 +00:00
nvme_manage example/nvme_manage: Use foreach_dev() macro for detach 2020-10-05 08:27:56 +00:00
perf examples/nvme: export DPDK single file descriptor memory segments as input parameter 2020-10-16 08:16:50 +00:00
reconnect event/app: allow to enable log flag for release builds 2020-10-15 08:23:39 +00:00
Makefile example/nvme: add application to test NVMe I/O abort 2020-07-17 07:21:13 +00:00