Spdk/test/vhost
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
..
common test/vhost-blk: enable read only test for vhost-blk 2018-04-23 20:40:26 +00:00
ext4test vhost_test: update vhost ext4test for spdk vhost 2017-03-24 14:23:12 -07:00
fiotest test/vhost: add support for running more than one vhost instance 2018-02-15 11:23:22 -05:00
hotplug test/vhost: Enable newest changes in vhost scsi hotremove tests 2018-03-23 04:17:52 -04:00
initiator Revert "test/virtio: test support for kernel vhost-scsi device" 2018-04-19 20:05:53 -04:00
integrity lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
lvol lvol: add destroy_lvol_bdev RPC method 2018-04-24 21:33:56 +00:00
migration test/vhost: live migration test case 3 2018-04-17 17:10:29 -04:00
other test/vhost: introduce notice, warning, error and fail message 2018-01-08 18:01:33 -05:00
readonly test/vhost-blk: enable read only test for vhost-blk 2018-04-23 20:40:26 +00:00
spdk_vhost.sh test/vhost: add live migration test case 2 2018-04-12 13:43:18 -04:00
test_plan.md test/vhost: remove virsh use from filesystem test 2018-03-23 04:08:28 -04:00