3126157a21
Since the number of NVMe controller's Namespace is a const variable, so the Namespace block device is a static array, and is assigned with NSID after initialization, so when users want to delete a specified block device, we can just change it into inactive state. Fix issue #495. Change-Id: Ie6e33ad59f2375cc2b5099624bfe1ef6918a6264 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/433543 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>