numam-spdk/test/lvol
Tomasz Zawadzki b6aaba0852 bdev: remove vbdevs during spdk_bdev_unregister()
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>
2018-01-24 15:50:04 -05:00
..
lvol_test.py test/lvol: Add lvol tasting test 2017-11-17 18:24:08 -05:00
lvol.sh test/lvol: update help message 2017-12-28 11:42:56 -05:00
rpc_commands_lib.py test/lvol: Replace stop/start vhost with add/delete bdev 2017-12-13 11:26:54 -05:00
test_cases.py bdev: remove vbdevs during spdk_bdev_unregister() 2018-01-24 15:50:04 -05:00
test_plan.md bdev: remove vbdevs during spdk_bdev_unregister() 2018-01-24 15:50:04 -05:00