numam-spdk/scripts/rpc
Daniel Verkamp f9d52c9ebd lvol: add destroy_lvol_bdev RPC method
This is the first step toward fixing the behavior of the lvol bdev
module so that it handles spdk_bdev_unregister() correctly.

Currently, when an lvol bdev is unregistered, this causes the associated
lvol to be deleted; this isn't the desired behavior, since
spdk_bdev_unregister() is just meant to drop the currently-exposed bdev,
as in a hot-unplug event, not destroy the backing storage.

The current implementation of the new destroy_lvol_bdev method still
calls into the exsting (broken) spdk_bdev_unregister() path, but this at
least lets us fix the existing delete_bdev RPC callers that really
intended to destroy the lvol.

The next step is to make vbdev_lvol_destroy() call spdk_lvol_destroy()
instead of unregistering the bdev, which will require cleanup in the
generic lvol layer to remove the close_only flag.

Change-Id: Ic4cb51305d31f6d7366a82ba7bf7b19ebbcd3e9c
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/408084
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-04-24 21:33:56 +00:00
..
__init__.py scripts/rpc.py: fix load_config method check 2018-04-05 17:27:00 -04:00
app.py scripts/rpc.py: pass client as separate parameter 2018-03-30 16:48:47 -04:00
bdev.py vbdev/passthru: add the construct_passthru_bdev RPC method 2018-04-20 14:58:13 -04:00
client.py scripts/rpc.py: Handle socket connection error 2018-04-12 11:24:04 -04:00
iscsi.py scripts/rpc.py: pass client as separate parameter 2018-03-30 16:48:47 -04:00
log.py scripts/rpc.py: pass client as separate parameter 2018-03-30 16:48:47 -04:00
lvol.py lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
nbd.py scripts/rpc.py: pass named args to nbd.py 2018-03-30 16:48:47 -04:00
net.py scripts/rpc.py: pass client as separate parameter 2018-03-30 16:48:47 -04:00
nvmf.py nvmf: add capability to add namespaces dynamically during active connection 2018-03-30 19:24:29 -04:00
pmem.py scripts/rpc.py: pass client as separate parameter 2018-03-30 16:48:47 -04:00
subsystem.py scripts/rpc.py: pass named args to subsystem.py 2018-03-30 16:48:47 -04:00
vhost.py rpc/vhost_nvme: add rpc support for vhost-nvme target 2018-04-20 15:24:50 -04:00