numam-spdk/examples/nvme/nvme_manage
Chunyang Hui aa09ce098d nvme_manage: Fix a bug of uninitialized namespace
Uninitialized namespace struct will be all zeros.
Some drive might have multiple namespaces but not initialized.
nvme_manage will get to segment fault when this happens. This
patch is to fix this.

Change-Id: I8ea5bf3d7c29cf876fbea3d1bee22b95748d3b8a
Signed-off-by: Chunyang Hui <chunyang.hui@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447414
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-03-08 20:59:51 +00:00
..
.gitignore spdk: Add namespace management interface and unit tests. 2016-03-04 09:52:30 +08:00
Makefile build: create a common mk file for nvme library tests and examples 2016-11-22 11:45:47 -07:00
nvme_manage.c nvme_manage: Fix a bug of uninitialized namespace 2019-03-08 20:59:51 +00:00