This list contains the disk templates suitable for moving
an instance by copying the files. A requirement is that
they're not accessed externally or shared between nodes;
in particular, sharedfile is not suitable.

Signed-off-by: Klaus Aehlig <[email protected]>
---
 lib/constants.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/constants.py b/lib/constants.py
index 8dbcae5..e9e127e 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -425,6 +425,13 @@ DTS_FILEBASED = compat.UniqueFrozenset([
   DT_SHARED_FILE,
   ])
 
+# the set of disk templates that can be moved by copying
+# Note: these templates should imply the absence of external access
+DTS_COPYABLE = compat.UniqueFrozenset([
+  DT_FILE,
+  DT_PLAIN,
+  ])
+
 # the set of disk templates that are supported by exclusive_storage
 DTS_EXCL_STORAGE = compat.UniqueFrozenset([DT_PLAIN])
 
-- 
1.8.1.3

Reply via email to