mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: hotplug: Remove qemuDomainDelDiskSrcTLSObject
Replace access via wrapper by direct call to monitor API. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6e6d84163e
commit
389d966abf
@ -182,15 +182,6 @@ qemuDomainAddDiskSrcTLSObject(virQEMUDriverPtr driver,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
qemuDomainDelDiskSrcTLSObject(virQEMUDriverPtr driver,
|
|
||||||
virDomainObjPtr vm,
|
|
||||||
virStorageSourcePtr src)
|
|
||||||
{
|
|
||||||
qemuDomainDelTLSObjects(driver, vm, QEMU_ASYNC_JOB_NONE, NULL, src->tlsAlias);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuHotplugWaitForTrayEject(virQEMUDriverPtr driver,
|
qemuHotplugWaitForTrayEject(virQEMUDriverPtr driver,
|
||||||
virDomainObjPtr vm,
|
virDomainObjPtr vm,
|
||||||
@ -529,6 +520,8 @@ qemuDomainAttachDiskGeneric(virQEMUDriverPtr driver,
|
|||||||
ignore_value(qemuMonitorDelObject(priv->mon, unmanagedPrmgrAlias));
|
ignore_value(qemuMonitorDelObject(priv->mon, unmanagedPrmgrAlias));
|
||||||
if (managedPrmgrAlias)
|
if (managedPrmgrAlias)
|
||||||
ignore_value(qemuMonitorDelObject(priv->mon, managedPrmgrAlias));
|
ignore_value(qemuMonitorDelObject(priv->mon, managedPrmgrAlias));
|
||||||
|
if (disk->src->tlsAlias)
|
||||||
|
ignore_value(qemuMonitorDelObject(priv->mon, disk->src->tlsAlias));
|
||||||
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
||||||
ret = -2;
|
ret = -2;
|
||||||
virErrorRestore(&orig_err);
|
virErrorRestore(&orig_err);
|
||||||
@ -536,7 +529,6 @@ qemuDomainAttachDiskGeneric(virQEMUDriverPtr driver,
|
|||||||
virDomainAuditDisk(vm, NULL, disk->src, "attach", false);
|
virDomainAuditDisk(vm, NULL, disk->src, "attach", false);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
qemuDomainDelDiskSrcTLSObject(driver, vm, disk->src);
|
|
||||||
ignore_value(qemuHotplugPrepareDiskAccess(driver, vm, disk, NULL, true));
|
ignore_value(qemuHotplugPrepareDiskAccess(driver, vm, disk, NULL, true));
|
||||||
if (priv->prDaemonRunning &&
|
if (priv->prDaemonRunning &&
|
||||||
!virDomainDefHasManagedPR(vm->def))
|
!virDomainDefHasManagedPR(vm->def))
|
||||||
|
Loading…
Reference in New Issue
Block a user