numam-spdk/scripts
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
..
ceph test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
perf/nvme pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
rpc lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
spdkcli spdkcli: initial version with bdev management 2018-04-20 13:25:21 -04:00
vagrant scripts/vagrant: add gdisk and sysstat packages 2018-03-05 10:50:32 -05:00
build_kmod.sh spdk: add the ioat_kperf test tool to autobuild system 2016-01-22 07:58:13 -07:00
check_format.sh Add strncpy to the list of banned functions 2018-04-13 16:15:52 -04:00
common.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
detect_cc.sh build: use conditional CC/CXX assignment for generated mk/cc.mk 2018-02-12 12:10:49 -05:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
gen_nvme.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
gen_rbd.sh test/bdev: add Ceph RBD bdev to bdev tests 2018-02-26 11:12:35 -05:00
genconfig.py build: sort dictionary in genconfig.py before printing 2018-02-08 12:05:54 -05:00
pkgdep.sh spdkcli: initial version with bdev management 2018-04-20 13:25:21 -04:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: Add reset option to prep_benchmarks.sh 2018-01-09 13:40:59 -05:00
rpc.py lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
setup.sh scripts/setup.sh: avoid clobbering $bdf variable 2018-03-12 17:04:38 -04:00
spdkcli.py spdkcli: initial version with bdev management 2018-04-20 13:25:21 -04:00