]> git.proxmox.com Git - pve-guest-common.git/commitdiff
PVE::AbstractConfig - add prototype for get_replicatable_volumes
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Jun 2017 07:03:14 +0000 (09:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Jun 2017 07:03:14 +0000 (09:03 +0200)
PVE/AbstractConfig.pm

index 06369ede80fce411306ad9f75610e25d1f96b69f..08cbb6a43fc4e198d0e54f7fb41ab98a20966161 100644 (file)
@@ -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