mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: driver: Don't call qemuDomainDetermineDiskChain on block jobs
Our code calls it when starting or re-starting the domain or when hotplugging the disk so there's nothing to be detected.
This commit is contained in:
parent
daecaea038
commit
ff9ed72bf1
@ -16525,9 +16525,6 @@ qemuDomainBlockCopyCommon(virDomainObjPtr vm,
|
|||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemuDomainDetermineDiskChain(driver, vm, disk, false, true) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
/* clear the _SHALLOW flag if there is only one layer */
|
/* clear the _SHALLOW flag if there is only one layer */
|
||||||
if (!disk->src->backingStore)
|
if (!disk->src->backingStore)
|
||||||
flags &= ~VIR_DOMAIN_BLOCK_COPY_SHALLOW;
|
flags &= ~VIR_DOMAIN_BLOCK_COPY_SHALLOW;
|
||||||
@ -16907,8 +16904,6 @@ qemuDomainBlockCommit(virDomainPtr dom,
|
|||||||
|
|
||||||
if (qemuDomainDiskBlockJobIsActive(disk))
|
if (qemuDomainDiskBlockJobIsActive(disk))
|
||||||
goto endjob;
|
goto endjob;
|
||||||
if (qemuDomainDetermineDiskChain(driver, vm, disk, false, true) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
if (!top)
|
if (!top)
|
||||||
topSource = disk->src;
|
topSource = disk->src;
|
||||||
|
Loading…
Reference in New Issue
Block a user