mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 18:03:50 +03:00
qemuDomainDiskLookupByNodename: Look also for 'mirror' node names
When doing a block copy, there is another chain of images attached to a disk. Consider them as well when looking up a disk using nodename. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
fd2369d026
commit
41c6939660
@ -11608,6 +11608,14 @@ qemuDomainDiskLookupByNodename(virDomainDefPtr def,
|
||||
|
||||
return def->disks[i];
|
||||
}
|
||||
|
||||
if (def->disks[i]->mirror &&
|
||||
(tmp = virStorageSourceFindByNodeName(def->disks[i]->mirror, nodename))) {
|
||||
if (src)
|
||||
*src = tmp;
|
||||
|
||||
return def->disks[i];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user