]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #828: activate disks before hotplugging them
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 27 Nov 2015 11:46:40 +0000 (12:46 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 27 Nov 2015 15:57:19 +0000 (16:57 +0100)
PVE/QemuServer.pm
changelog.Debian

index 0dba04e7bfe2d5375eb380b6415debffd2c3d17f..2361e83fc1a372b4475abf1a98553d31d92dab39 100644 (file)
@@ -4299,6 +4299,7 @@ sub vmconfig_update_disk {
 
     die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/;
     # hotplug new disks
+    PVE::Storage::activate_volumes($storecfg, [$drive->{file}]);
     vm_deviceplug($storecfg, $conf, $vmid, $opt, $drive);
 }
 
index 7830dfcc1c36fadc163d38d5cc7bf290e1a3ff46..f1c439d71aea1af72db85ef5e57d96a444c93976 100644 (file)
@@ -1,5 +1,7 @@
 qemu-server (4.0-39) unstable; urgency=medium
 
+  * fix bug #828: activate disks before hotplugging them
+
   * fix bug #783: set KillMode=none, so that systemd don't kill
     them at shutdown