[pve-devel] [PATCH 3/7] add drive_mirror_monitor to move_disk

Alexandre Derumier aderumier at odiso.com
Thu Oct 20 02:35:12 CEST 2016


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Qemu.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 98865f6..62055d1 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2583,6 +2583,8 @@ __PACKAGE__->register_method({
 		    my $newdrive = PVE::QemuServer::clone_disk($storecfg, $vmid, $running, $disk, $drive, undef,
 							       $vmid, $storeid, $format, 1, $newvollist);
 
+                    PVE::QemuServer::qemu_drive_mirror_monitor($vmid) if $running;
+
 		    $conf->{$disk} = PVE::QemuServer::print_drive($vmid, $newdrive);
 
 		    PVE::QemuConfig->add_unused_volume($conf, $old_volid) if !$param->{delete};
-- 
2.1.4




More information about the pve-devel mailing list