Spdk/test
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
..
app test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
bdev test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
blobfs test/rocksdb: move nightly test case to RUN_NIGHTLY_FAILING. 2018-04-20 17:24:45 -04:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test/common: Fix flamegraph typo in vm_setup 2018-04-20 17:49:36 -04:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env test: move lib/env up one level 2018-03-29 00:31:24 -04:00
event test: move lib/event up one directory 2018-03-29 00:31:24 -04:00
ioat test: move lib/ioat up one directory 2018-03-27 00:46:52 -04:00
iscsi_tgt test/iscsi_tgt: merge the two steps of running fio_remote_nvme.sh 2018-04-17 14:27:25 -04:00
lvol lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
nvme test/nvme/aer: add changed namespace list log test 2018-04-11 16:05:09 -04:00
nvmf lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
pmem test/pmem: add timing markers to pmem test 2018-04-23 20:10:22 +00:00
unit vhost: switch to the new rte_vhost API for GPA translation 2018-04-23 18:29:42 +00:00
vhost lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00