Spdk/test/unit/lib/bdev
Tomasz Zawadzki 4219407a93 lvol: destroy_lvol_bdev implementation
This patch fixes lvol delete behaviour.
First, we look if there are any dependencies that disallow lvol deletion.
If there are any (i.e. dependent clones) we fail.
Otherwise we delete lvol and unregister associated bdev.

destroy_bdev no longer deletes lvol.

Fixes #345

Signed-off-by: Piotr Pelplinski <piotr.pelplinski@intel.com>
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I99e6abded2ed3ae2742103f81fc7eb937ad1cab4
Reviewed-on: https://review.gerrithub.io/407402
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-07-25 17:06:45 +00:00
..
bdev_raid.c bdev: add raid bdev module 2018-07-16 20:50:40 +00:00
bdev.c bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
gpt test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
mt test: fix scan-build errors in bdev unittests. 2018-07-06 20:34:01 +00:00
part.c bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
pmem bdev: further encapsulate spdk_bdev_io struct 2018-06-20 19:24:39 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vbdev_lvol.c lvol: destroy_lvol_bdev implementation 2018-07-25 17:06:45 +00:00
Makefile bdev: add raid bdev module 2018-07-16 20:50:40 +00:00