When users call the RPC to add a NVMe controller, block NVMe driver will create controller and block devices based on Namespaces, so wrapper the two actions together with a intermediate function, this will make the code looks more clean for the coming patch. Change-Id: Iddc072042eb2df90662c42e04427307ccf5d5633 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/445658 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
bdev_ftl_rpc.c | ||
bdev_ftl.c | ||
bdev_ftl.h | ||
bdev_nvme_rpc.c | ||
bdev_nvme.c | ||
bdev_nvme.h | ||
common.c | ||
common.h | ||
Makefile | ||
nvme_rpc.c |