mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virDomainDiskTranslateSourcePool: Don't re-translate already translated defs
If a disk definition was already translated re-doing it makes no sense. Skip the translation if the 'actualtype' is already populated. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d8fd9904ff
commit
4ebb454231
@ -30529,7 +30529,7 @@ virDomainDiskTranslateSourcePool(virDomainDiskDef *def)
|
||||
virStorageSource *n;
|
||||
|
||||
for (n = def->src; virStorageSourceIsBacking(n); n = n->backingStore) {
|
||||
if (n->type != VIR_STORAGE_TYPE_VOLUME || !n->srcpool)
|
||||
if (n->type != VIR_STORAGE_TYPE_VOLUME || !n->srcpool || n->srcpool->actualtype != VIR_STORAGE_TYPE_NONE)
|
||||
continue;
|
||||
|
||||
if (!conn) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user