]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: call qemuSnapshotDeleteUpdateDisks only for external snapshots
authorPavel Hrdina <phrdina@redhat.com>
Wed, 21 Feb 2024 16:45:08 +0000 (17:45 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 2 Apr 2024 12:14:26 +0000 (14:14 +0200)
commit79654f425c3ea6d421dcf0fe109cf0bb6d741d61
treef7b701af3ff8664a97c525990edbf03dcd36b82b
parentca7d1bd5eeacc7a19179a54cf25c1ffbfbd69edf
qemu_snapshot: call qemuSnapshotDeleteUpdateDisks only for external snapshots

Calling this function when deleting internal snapshot isn't required
because with internal snapshots all changes are done within the file
itself so there is no file deletion and no need to update snapshot
metadata.

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