mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
qemuDomainSetBlockThreshold: Call qemuBlockNodeNamesDetect only without blockdev
Make sure that we don't try to reload node names with -blockdev. If something doesn't have a node name the update will not make the situation better. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5ac95d8084
commit
9fdf6aeb7a
@ -22597,7 +22597,8 @@ qemuDomainSetBlockThreshold(virDomainPtr dom,
|
||||
if (!(src = qemuDomainGetStorageSourceByDevstr(dev, vm->def)))
|
||||
goto endjob;
|
||||
|
||||
if (!src->nodestorage &&
|
||||
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) &&
|
||||
!src->nodestorage &&
|
||||
qemuBlockNodeNamesDetect(driver, vm, QEMU_ASYNC_JOB_NONE) < 0)
|
||||
goto endjob;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user