ebedb9fd25
For namespace we need to use array of objects. Remove useless check for bdev != NULL as this is already guarded by ns_active. As we are here also switch to new JSON named API. Change-Id: If8ab15c63ea015731829276e06e5cb5a801620d2 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/409025 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>