From 36cff88657855af44158754a84a9eb9a0214dad9 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Wed, 8 Apr 2020 11:25:00 +0200 Subject: [PATCH] Use new storage_migrate interface Signed-off-by: Fabian Ebner --- PVE/Replication.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/PVE/Replication.pm b/PVE/Replication.pm index b0c6db3..ae0f145 100644 --- a/PVE/Replication.pm +++ b/PVE/Replication.pm @@ -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); } -- 2.39.2