mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
qemuCheckpointDiscardBitmaps: Use correct field for checkpoint bitmap name
The code deleting checkpoints needs the name of the parent checkpoint's disk's bitmap but was using the disk alias instead. This would create wrong bitmaps after deleting some checkpoints. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
c6d117528c
commit
0ce8b0fbe2
@ -283,7 +283,7 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm,
|
||||
* ancestor. */
|
||||
if ((parentchkdisk = qemuCheckpointFindActiveDiskInParent(vm, parent,
|
||||
chkdisk->name)))
|
||||
parentbitmap = parentchkdisk->name;
|
||||
parentbitmap = parentchkdisk->bitmap;
|
||||
|
||||
if (qemuCheckpointDiscardDiskBitmaps(domdisk->src, blockNamedNodeData,
|
||||
chkdisk->bitmap, parentbitmap,
|
||||
|
Loading…
Reference in New Issue
Block a user