numam-spdk/lib/bdev/error
Jim Harris 5fb8722899 bdev: add callback to free part_base
This puts responsibility on the caller to free the buffer
and do any other cleanup associated with the partition base
(for example, GPT buffer).

While here, also clean up a bunch of places where on
various failures during initialization, it would just
free the buffer instead of calling spdk_bdev_part_base_free().
The latter is required to make sure the bdev descriptor
gets closed as well.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ic000339459eca4a4a1d103da2e1f3feffe7e764f
Reviewed-on: https://review.gerrithub.io/378653
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2017-10-01 21:57:00 -04:00
..
Makefile bdev/error: Add new bdev/error to inject errors in bdev layer. 2017-05-18 07:56:14 -07:00
vbdev_error_rpc.c bdev/error: Make the injected errors as vector. 2017-07-06 15:02:06 -04:00
vbdev_error.c bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
vbdev_error.h bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00