[CRIU,1/3] p.haul: add Virtuozzo specific argument to pass list of secondary ploop disk

Submitted by Nikita Spiridonov on June 21, 2016, 9:29 a.m.


Message ID 1466501354-655212-2-git-send-email-nspiridonov@virtuozzo.com
State New
Series "Fix migration of Virtuozzo containers with multiple ploop disks"
Headers show

Commit Message

Nikita Spiridonov June 21, 2016, 9:29 a.m.
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@virtuozzo.com>
 phaul/p_haul_vz.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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):