Spdk/test/nvmf
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
..
discovery test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
filesystem test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
fio test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
host lvol: destroy_lvol_bdev implementation 2018-07-25 17:06:45 +00:00
lvol test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
multiconnection test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
nvme_cli test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
nvmfjson json/rpc: Tests for nvmf subsystem 2018-07-10 21:18:18 +00:00
rpc test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
shutdown test/nvmf: Do not use config files 2018-07-13 22:40:06 +00:00
common.sh test/nvmf: update test scripts from ifconfig to iproute2 2018-04-12 13:19:39 -04:00
nvmf.conf nvmf: SGL support for NVMF RDMA Driver. 2018-06-04 17:15:49 +00:00
nvmf.sh test: add SPDK_TEST_NVME_CLI autotest flag 2018-07-10 23:18:27 +00:00
test_plan.md test/nvmf: remove nvmf_tgt+pmem test 2018-04-03 14:14:29 -04:00