b6aaba0852
spdk_vbdev_unregister() is part of internal bdev API, yet bdev module that uses spdk_vbdev_register() directly will not be removed correctly when using delete_bdev RPC. spdk_vbdev_unregister() is now consolidated with spdk_bdev_unregister(). This comes up when deleting lvol bdev, as it does not use spdk_bdev_part_* functions. base_bdev->vbdevs entry was not removed for bdev that lvs is created on. Additionally patch expands test to create lvol bdev, after removing it using delete_bdev RPC. With ASAN enabled this would report accessing already freed memory previously. Change-Id: I9547e83862e2daa50355d56a1c9f453aaa6cfdb8 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/395711 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
lvol_test.py | ||
lvol.sh | ||
rpc_commands_lib.py | ||
test_cases.py | ||
test_plan.md |