mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-06 08:31:28 +00:00
device unplug: verify that unplugging scsi disk completed
Avoids the error adding drive failed: Duplicate ID 'drive-scsi1' for drive that could happen when switching over to a new disk (e.g. via qm set), if unplugging wasn't fast enough. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
6ab41628b2
commit
52b361afd6
@ -4249,6 +4249,7 @@ sub vm_deviceunplug {
|
||||
my $device = parse_drive($deviceid, $conf->{$deviceid});
|
||||
|
||||
qemu_devicedel($vmid, $deviceid);
|
||||
qemu_devicedelverify($vmid, $deviceid);
|
||||
qemu_drivedel($vmid, $deviceid);
|
||||
qemu_deletescsihw($conf, $vmid, $deviceid);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user