On a Friday in 2023, Peter Krempa wrote:
Rewrite the code to use the common tooling for removing blockdevs
instead of the ad-hoc qemuBlockStorageSourceDetachOneBlockdev helper.
Use of the common infrastructure will properly handle cases when the raw
driver is ommited from the block graph.
Since the TLS data object is shared for all migration QMP commands and
objects we need to strip it's alias from the definition of the storage
*its
source before attempting to detach it.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_migration.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
Jano