]> xenbits.xensource.com Git - libvirt.git/commit
qemuSnapshotActiveInternalDeleteGetDevices: Add warning when deleting inconsistent...
authorPeter Krempa <pkrempa@redhat.com>
Thu, 3 Oct 2024 11:24:31 +0000 (13:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Oct 2024 14:00:43 +0000 (16:00 +0200)
commit8be8b7de783ae6f140b9f8a3bf120dc21c3bfcb2
tree233c409b14f69e1cb20c839fd1b5347ad7a61ca9
parenteac1a86f72f3846ec0f7d3339286ba4b521474c1
qemuSnapshotActiveInternalDeleteGetDevices: Add warning when deleting inconsistent snapshot

As explained in the commit which added the new internal snapshot
deletion code we don't want to do any form of strict checking whether
the libvirt metadata is consistent with the on-disk state as we didn't
historically do that.

In order to be able to spot the cases add a warning into the logs if
such state is encountered. While warnings are easy to miss it's the only
reasonable way to do that. Users will be encouraged to file an issue
with the information, without requiring them to enable debug logs as
the reproduction of that issue may include very old historical state.

The checker is deliberately added separately so that it can be easily
reverted once it's no longer needed.

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