]> git.proxmox.com Git - qemu-server.git/commitdiff
nbd mirror: no need applying full regex on volid string anymore
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Feb 2018 13:43:36 +0000 (14:43 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Feb 2018 13:43:56 +0000 (14:43 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index fc3ff6d8d6337198b971fc91aaa7da2268b37d53..ebdca42ba330c18e9ce6d2974ebb5de17a0e84af 100644 (file)
@@ -6061,7 +6061,7 @@ sub qemu_drive_mirror {
     my $format;
     $jobs->{"drive-$drive"} = {};
 
-    if ($dst_volid =~ /^nbd:(localhost|[\d\.]+|\[[\d\.:a-fA-F]+\]):(\d+):exportname=(\S+)/) {
+    if ($dst_volid =~ /^nbd:/) {
        $qemu_target = $dst_volid;
        $format = "nbd";
     } else {