pending : add disk hot-unplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-01-02 15:15:58 +01:00 committed by Dietmar Maurer
parent 915d3481b3
commit 19120f9967

View File

@ -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";
}