mirror of https://gitee.com/openkylin/libvirt.git
Remove redundant cleanup in qemuDomainAttachVirtioDiskDevice
Commit ca91ba7
moved these into the qemuDomainPrepareDisk helper,
but forgot to remove them from here as well.
This commit is contained in:
parent
1cddf0001f
commit
1adda68a1b
|
@ -411,14 +411,6 @@ qemuDomainAttachVirtioDiskDevice(virConnectPtr conn,
|
|||
qemuDomainReleaseDeviceAddress(vm, &disk->info, src);
|
||||
|
||||
ignore_value(qemuDomainPrepareDisk(driver, vm, disk, NULL, true));
|
||||
|
||||
if (virSecurityManagerRestoreDiskLabel(driver->securityManager,
|
||||
vm->def, disk) < 0)
|
||||
VIR_WARN("Unable to restore security label on %s", src);
|
||||
|
||||
if (virDomainLockDiskDetach(driver->lockManager, vm, disk) < 0)
|
||||
VIR_WARN("Unable to release lock on %s", src);
|
||||
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue