From 6a50f652a687b5290b66a2ef75c767b8a4c8743d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 9 May 2017 06:23:23 +0200 Subject: [PATCH] rename get_syncable_guestdisks to get_replicatable_volumes --- PVE/ReplicationTools.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PVE/ReplicationTools.pm b/PVE/ReplicationTools.pm index 28a1473..59e7495 100644 --- a/PVE/ReplicationTools.pm +++ b/PVE/ReplicationTools.pm @@ -139,10 +139,10 @@ sub sync_guest { my $storecfg = PVE::Storage::config(); # will not die if a disk is not syncable - my $disks = get_syncable_guestdisks($storecfg, $guest_conf, $vm_type); + my $disks = get_replicatable_volumes($storecfg, $guest_conf, $vm_type); # check if all nodes have the storage availible - foreach my $volid (keys %$disks) { + foreach my $volid (keys %$disks) { my ($storeid) = PVE::Storage::parse_volume_id($volid); my $store = $storecfg->{ids}->{$storeid}; @@ -345,7 +345,7 @@ sub job_remove { die $@ if $@; } -sub get_syncable_guestdisks { +sub get_replicatable_volumes { my ($storecfg, $conf, $vm_type, $noerr) = @_; if ($vm_type eq 'qemu') { @@ -365,7 +365,7 @@ sub destroy_all_snapshots { my ($guest_conf, $vm_type, $running) = &$get_guestconfig($vmid); my $storecfg = PVE::Storage::config(); - my $disks = get_syncable_guestdisks($storecfg, $guest_conf, $vm_type); + my $disks = get_replicatable_volumes($storecfg, $guest_conf, $vm_type); my $snapshots = {}; foreach my $volid (keys %$disks) { @@ -457,7 +457,7 @@ sub get_lastsync { my ($conf, $vm_type) = &$get_guestconfig($vmid); my $storecfg = PVE::Storage::config(); - my $sync_vol = get_syncable_guestdisks($storecfg, $conf, $vm_type); + my $sync_vol = get_replicatable_volumes($storecfg, $conf, $vm_type); my $time; foreach my $volid (keys %$sync_vol) {