mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemuDomainBlockCopyCommon: Record updated flags to block job
For a long time we've masked out VIR_DOMAIN_BLOCK_COPY_SHALLOW if
there's no backing chain for the copied disk to simplify the code.
One of the refactors of the block copy code caused that we no longer
update the 'flags' variable just the local copies. This was okay until
in ccd4228aff
we started storing the job flags in the block job data.
Given that we modify how we call qemu we also should modify @flags so
that the correct value is recorded in the block job data.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
a89ba6524c
commit
c2b6bc7377
@ -17917,8 +17917,10 @@ qemuDomainBlockCopyCommon(virDomainObjPtr vm,
|
||||
}
|
||||
|
||||
/* clear the _SHALLOW flag if there is only one layer */
|
||||
if (!virStorageSourceHasBacking(disk->src))
|
||||
if (!virStorageSourceHasBacking(disk->src)) {
|
||||
flags &= ~VIR_DOMAIN_BLOCK_COPY_SHALLOW;
|
||||
mirror_shallow = false;
|
||||
}
|
||||
|
||||
if (qemuDomainBlockCopyCommonValidateUserMirrorBackingStore(mirror,
|
||||
mirror_shallow,
|
||||
|
Loading…
Reference in New Issue
Block a user