mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-12-31 18:31:40 +00:00
drive_add : escape \ character
storage.cfg
-----------
rbd mystorage
monhost 10.5.0.11:6789; 10.5.0.12:6789; 10.5.0.13:6789
drive_add auto "file=rbd:poolceph1/vm-101-disk-8:mon_host=10.5.0.11\\:6789; 10.5.0.12\\:6789; 10.5.0.13\\:6789:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/cephzimbra.keyring,if=none,id=drive-virtio2,aio=native,cache=none,detect-zeroes=on"
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
4cc1efa615
commit
7a69fc3cd1
@ -3394,6 +3394,7 @@ sub qemu_driveadd {
|
||||
my ($storecfg, $vmid, $device) = @_;
|
||||
|
||||
my $drive = print_drive_full($storecfg, $vmid, $device);
|
||||
$drive =~ s/\\/\\\\/g;
|
||||
my $ret = vm_human_monitor_command($vmid, "drive_add auto \"$drive\"");
|
||||
|
||||
# If the command succeeds qemu prints: "OK"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user