]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSnapshotCreateActiveExternal: Don't unlink memory snapshot image if it was existi...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Jun 2021 14:56:56 +0000 (16:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 18 Jun 2021 07:16:16 +0000 (09:16 +0200)
commitb396e9dd9ddd9745ac90ab549912de7bc5cc0b17
tree41c4ac76244129a0d1691a6eed5dc119935d2413
parentb30a8ee67d355f5258ece062bacaa102428e6d69
qemuSnapshotCreateActiveExternal: Don't unlink memory snapshot image if it was existing before

When writing the memory snapshot into an existing file don't remove it
if the snapshot fails later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_snapshot.c