mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemuDomainSetBlockThreshold: Remove pre-blockdev node name detection
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
de1289b46e
commit
309b0d4161
@ -19727,18 +19727,6 @@ qemuDomainSetBlockThreshold(virDomainPtr dom,
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) &&
|
||||
!src->nodestorage &&
|
||||
qemuBlockNodeNamesDetect(vm, VIR_ASYNC_JOB_NONE) < 0)
|
||||
goto endjob;
|
||||
|
||||
if (!src->nodestorage) {
|
||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||
_("threshold currently can't be set for block device '%s'"),
|
||||
dev);
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
nodename = g_strdup(src->nodestorage);
|
||||
|
||||
qemuDomainObjEnterMonitor(vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user