numam-spdk/test/nvmf
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
..
discovery autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
filesystem test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
fio test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
host lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
lvol test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
multiconnection test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
nvme_cli test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
rpc Segfault occurs during connect to the subsystem when a namespace is added with a nsid smaller than the nsid previously added 2018-04-03 13:26:14 -04:00
shutdown autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common.sh test/nvmf: update test scripts from ifconfig to iproute2 2018-04-12 13:19:39 -04:00
nvmf.conf test/nvmf: Enable the multicore test. 2018-02-28 10:05:59 -05:00
nvmf.sh test/nvme/aer: add changed namespace list log test 2018-04-11 16:05:09 -04:00
test_plan.md test/nvmf: remove nvmf_tgt+pmem test 2018-04-03 14:14:29 -04:00