numam-spdk/test/iscsi_tgt
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
..
calsoft test/iscsi_tgt: Delete temporary files when trap catches error 2018-07-20 06:00:06 +00:00
digests test/iscsi: use iSCSI configuration instead of hard coded values 2018-03-29 01:25:00 -04:00
ext4test test/iscsi_tgt: Delete temporary files when trap catches error 2018-07-20 06:00:06 +00:00
filesystem lvol: destroy_lvol_bdev implementation 2018-07-25 17:06:45 +00:00
fio test/iscsi_tgt: Delete temporary files when trap catches error 2018-07-20 06:00:06 +00:00
initiator test/iscsi_tgt: Delete temporary files when trap catches error 2018-07-20 06:00:06 +00:00
ip_migration test/iscsi: utilize network namespaces in iSCSI tests 2018-04-26 17:10:36 +00:00
iscsijson test/json: Tests for iscsi subsystems. 2018-07-17 17:42:06 +00:00
lvol test/iscsi: parametrize PORTAL_TAG 2018-03-29 01:25:00 -04:00
multiconnection lvol: destroy_lvol_bdev implementation 2018-07-25 17:06:45 +00:00
nvme_remote test/iscsi_tgt: Delete temporary files when trap catches error 2018-07-20 06:00:06 +00:00
pmem bdev: add delete_pmem_bdev call 2018-07-02 22:53:18 +00:00
qos autotest: Adding qos test case under the spdk/test/iscsi_tgt directory. 2018-06-04 19:09:21 +00:00
rbd bdev: add delete_rbd_bdev call 2018-07-02 22:53:18 +00:00
reset test/iscsi: use iSCSI configuration instead of hard coded values 2018-03-29 01:25:00 -04:00
rpc_config test/iscsi: allow choosing net framework for iSCSI tests 2018-06-22 21:09:50 +00:00
common.sh test/iscsi: allow choosing net framework for iSCSI tests 2018-06-22 21:09:50 +00:00
iscsi_tgt.sh test/iscsi: allow choosing net framework for iSCSI tests 2018-06-22 21:09:50 +00:00
test_plan.md test/iscsi: Add iscsi_tgt with NVML backend test 2017-10-19 13:00:27 -04:00