]> xenbits.xensource.com Git - libvirt.git/commit
qemu_process: abort snapshot delete when daemon starts
authorPavel Hrdina <phrdina@redhat.com>
Thu, 1 Dec 2022 14:38:59 +0000 (15:38 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:33:16 +0000 (13:33 +0100)
commitcadbf40d05b9df2b0fe6d2e9409e1f1a105b830e
treef49ff2360254f2a6c48317e757d62f671bf0d0e4
parentf474e80ac350ffdc02b6a26b5ecf9840fa63ab77
qemu_process: abort snapshot delete when daemon starts

If the daemon crashes or is restarted while the snapshot delete is in
progress we have to handle it gracefully to not leave any block jobs
active.

For now we will simply abort the snapshot delete operation so user can
start it again. We need to refuse deleting external snapshots if there
is already another active job as we would have to figure out which jobs
we can abort.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_process.c
src/qemu/qemu_snapshot.c