]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Deactivate block nodes on manually snapshotted disks
authorPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jun 2025 10:33:04 +0000 (12:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Oct 2025 13:32:40 +0000 (15:32 +0200)
commit2e19e68093059e114b78ff2444564243498e5c1c
treeb001462b5a3e3d72bfed5cf36f9a2dd7d4142911
parentf879d5f40385358ddc25b25458c164160c409110
qemu: snapshot: Deactivate block nodes on manually snapshotted disks

If the user wants to manually preserve state of the disk we need, apart
from pausing the machine to quiesce all writes, also deactivate the
block nodes of the device. This ensures that qemu writes out metadata
(e.g. block dirty bitmaps) which are normally stored only in memory,
thus allowing a consistent snapshot including the metadata.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_snapshot.c