[pve-devel] [PATCH common] add abstract is_shared_only check

Dominik Csapak d.csapak at proxmox.com
Thu Dec 1 17:21:37 CET 2016


this must be implemented in the Migration subclasses, and is a check
if all disks/mountpoints/etc. are marked as shared

this will be used for the migrate all call, where we can then migrate
the guests with only shared storage

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PVE/AbstractConfig.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/PVE/AbstractConfig.pm b/src/PVE/AbstractConfig.pm
index ac12fd1..c246cc5 100644
--- a/src/PVE/AbstractConfig.pm
+++ b/src/PVE/AbstractConfig.pm
@@ -190,6 +190,12 @@ sub has_feature {
     die "implement me - abstract method\n";
 }
 
+# checks whether the all volumes are on a shared storage or not
+sub is_shared_only {
+    my ($class, $conf, $scfg) = @_;
+    die "implement me = abstract method\n";
+}
+
 # Internal snapshots
 
 # NOTE: Snapshot create/delete involves several non-atomic
-- 
2.1.4





More information about the pve-devel mailing list