]> git.proxmox.com Git - qemu-server.git/commitdiff
readd nbd_stop
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 13 Apr 2018 12:13:42 +0000 (14:13 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 13 Apr 2018 12:39:06 +0000 (14:39 +0200)
we accidentally moved nbd_stop to CloudInit.pm in
commit 0c9a7596f6b686ead232927851200554c997fa44

and removed it in
commit 3db6e4ab708b29e9e59572efd8e44558c84bad6d

without realizing that live local storage migration still depends on it

readd it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm

index 315073fce15e865883b5b47d0c48f82fa6167179..54e2e662260517a38c0267c56ca37ef6f2181061 100644 (file)
@@ -6725,4 +6725,10 @@ sub complete_storage {
     return $res;
 }
 
+sub nbd_stop {
+    my ($vmid) = @_;
+
+    vm_mon_cmd($vmid, 'nbd-server-stop');
+}
+
 1;