[pve-devel] [PATCH] bug 597: hotplug fix

Wolfgang Link w.link at proxmox.com
Tue Feb 10 11:34:23 CET 2015


wrap params in dopple quotes, so spaces will accept.

Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 PVE/QemuServer.pm |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 7045c14..9b4e137 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4248,6 +4248,10 @@ sub vm_qmp_command {
 sub vm_human_monitor_command {
     my ($vmid, $cmdline) = @_;
 
+    #This is necessary, so Human-Monitor accept spaces. 
+    $cmdline =~ s/(file=rbd:)/\"$1/g;
+    $cmdline .=	"\"";
+
     my $res;
 
     my $cmd = {
-- 
1.7.10.4





More information about the pve-devel mailing list