From 3f85b14d896b856df40c449a454bf74baa1f56e7 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 12 Jun 2017 09:03:14 +0200 Subject: [PATCH] PVE::AbstractConfig - add prototype for get_replicatable_volumes --- PVE/AbstractConfig.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm index 06369ed..08cbb6a 100644 --- a/PVE/AbstractConfig.pm +++ b/PVE/AbstractConfig.pm @@ -192,6 +192,15 @@ sub has_feature { die "implement me - abstract method\n"; } +# get all replicatable volume (hash $res->{$volid} = 1) +# $cleanup: for cleanup - simply ignores volumes without replicate feature +# $norerr: never raise exceptions - return undef instead +sub get_replicatable_volumes { + my ($class, $storecfg, $conf, $cleanup, $noerr) = @_; + + die "implement me - abstract method\n"; +} + # Internal snapshots # NOTE: Snapshot create/delete involves several non-atomic