[pve-devel] [PATCH qemu-server] readd nbd_stop

Dominik Csapak d.csapak at proxmox.com
Fri Apr 13 14:13:42 CEST 2018


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 at proxmox.com>
---
 PVE/QemuServer.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 315073f..54e2e66 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6725,4 +6725,10 @@ sub complete_storage {
     return $res;
 }
 
+sub nbd_stop {
+    my ($vmid) = @_;
+
+    vm_mon_cmd($vmid, 'nbd-server-stop');
+}
+
 1;
-- 
2.11.0





More information about the pve-devel mailing list