mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
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);
|
qemuDomainReleaseDeviceAddress(vm, &disk->info, src);
|
||||||
|
|
||||||
ignore_value(qemuDomainPrepareDisk(driver, vm, disk, NULL, true));
|
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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user