Spdk/include/spdk_internal
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
..
assert.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
copy_engine.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
event.h event: allow subsystem to write configuration in async way 2018-03-27 02:57:28 -04:00
log.h log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvolstore.h lvol: destroy_lvol_bdev implementation 2018-07-25 17:06:45 +00:00
mock.h mock: mark wrappers "used" so LTO will keep them 2018-01-25 14:21:02 -05:00
sock.h net/sock: separate sock.c from posix related functions 2018-03-14 13:08:09 -04:00
utf.h utf.h: remove #include "spdk/json.h" 2018-01-31 14:37:16 -05:00
virtio.h virtio: allow config read/write to fail 2018-07-05 20:47:38 +00:00