]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: roll back if not all nbdkit backends are successful
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 25 Jan 2024 20:02:16 +0000 (14:02 -0600)
committerJonathon Jongsma <jjongsma@redhat.com>
Mon, 12 Feb 2024 22:13:17 +0000 (16:13 -0600)
commit4495ec7d9b442753f2be946dd5d2fe512d0adaaa
treeb8ded2c1253a5c237d46aeb6558ebefdf07f162c
parent7a03785d885df674511c230275ddb8764cd8c69d
qemu: roll back if not all nbdkit backends are successful

When starting nbdkit processes for the backing store of a disk, we were
returning an error if any backing store failed, but we were not cleaning
up processes that succeeded higher in the chain. Make sure that if we
return a failure status from qemuNbdkitStartStorageSource() that we roll
back any processes that had been started.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_nbdkit.c