mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 13:36:15 +00:00
pending : add disk hot-unplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
915d3481b3
commit
19120f9967
@ -3656,7 +3656,9 @@ sub vmconfig_hotplug_pending {
|
||||
die "skip\n" if !$hotplug;
|
||||
vm_deviceunplug($vmid, $conf, $opt);
|
||||
} elsif (valid_drivename($opt)) {
|
||||
die "skip\n"; # we do not allow to hot-remove disk?
|
||||
die "skip\n" if !$hotplug;
|
||||
vm_deviceunplug($vmid, $conf, $opt);
|
||||
vmconfig_register_unused_drive($storecfg, $vmid, $conf, parse_drive($opt, $conf->{$opt}));
|
||||
} else {
|
||||
die "skip\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user