mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-06 20:00:05 +00:00
virDomainDefHasManagedPR: Consider also disk's 'mirror' chain
Consider also the destination of a block-copy job. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7087d8b46f
commit
8e0591520f
@ -31372,6 +31372,9 @@ virDomainDefHasManagedPR(const virDomainDef *def)
|
||||
for (i = 0; i < def->ndisks; i++) {
|
||||
if (virStorageSourceChainHasManagedPR(def->disks[i]->src))
|
||||
return true;
|
||||
|
||||
if (virStorageSourceChainHasManagedPR(def->disks[i]->mirror))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user