[CRIU] [PATCH p.haul 1/3] p.haul: add Virtuozzo specific argument to pass list of secondary ploop disk
Nikita Spiridonov
nspiridonov at virtuozzo.com
Tue Jun 21 02:29:12 PDT 2016
Add Virtuozzo specific --vz-secondary-disks argument needed to pass
list of secondary ploop disks. Consider all additional disks of
container (second, third and so on) are secondary.
Signed-off-by: Nikita Spiridonov <nspiridonov at virtuozzo.com>
---
phaul/p_haul_vz.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/phaul/p_haul_vz.py b/phaul/p_haul_vz.py
index a0ba306..cb87574 100644
--- a/phaul/p_haul_vz.py
+++ b/phaul/p_haul_vz.py
@@ -120,6 +120,7 @@ class p_haul_type:
def set_options(self, opts):
self.__verbose = opts["verbose"]
+ self.__secondary_disks = opts.get("vz_secondary_disks")
def adjust_criu_req(self, req):
"""Add module-specific options to criu request"""
@@ -316,6 +317,7 @@ class p_haul_type:
def add_hauler_args(parser):
"""Add Virtuozzo specific command line arguments"""
parser.add_argument("--vz-shared-disks", help="List of shared storage disks")
+ parser.add_argument("--vz-secondary-disks", help="List of secondary ploop disks")
def _parse_vz_config(body):
--
1.7.1
More information about the CRIU
mailing list