]> git.proxmox.com Git - pve-guest-common.git/commitdiff
Use new storage_migrate interface
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 8 Apr 2020 09:25:00 +0000 (11:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Apr 2020 07:39:31 +0000 (09:39 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Replication.pm

index b0c6db3beb967dd32beefb4a3b8674363e7f6d35..ae0f145881a10bbf6ebd81a3c9405ef8b7c0bdf7 100644 (file)
@@ -187,8 +187,16 @@ sub replicate_volume {
 
     my $ratelimit_bps = $rate ? int(1000000 * $rate) : undef;
 
-    PVE::Storage::storage_migrate($storecfg, $volid, $ssh_info, $storeid, $volname,
-                                 $base_snapshot, $sync_snapname, $ratelimit_bps, $insecure, 1, $logfunc);
+    my $opts = {
+       'target_volname' => $volname,
+       'base_snapshot' => $base_snapshot,
+       'snapshot' => $sync_snapname,
+       'ratelimit_bps' => $ratelimit_bps,
+       'insecure' => $insecure,
+       'with_snapshots' => 1,
+    };
+
+    PVE::Storage::storage_migrate($storecfg, $volid, $ssh_info, $storeid, $opts, $logfunc);
 }