[CRIU] [PATCH 3/5] p.haul: add --manage-cgroups option to dump and restore requests
Nikita Spiridonov
nspiridonov at odin.com
Tue Jun 30 07:18:28 PDT 2015
Add --manage-cgroups option to criu dump and restore requests in VZ
module.
Signed-off-by: Nikita Spiridonov <nspiridonov at odin.com>
---
phaul/p_haul_vz.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/phaul/p_haul_vz.py b/phaul/p_haul_vz.py
index 96c824f..b674a8a 100644
--- a/phaul/p_haul_vz.py
+++ b/phaul/p_haul_vz.py
@@ -75,7 +75,9 @@ class p_haul_type:
def adjust_criu_req(self, req):
"""Add module-specific options to criu request"""
if req.type == pycriu.rpc.DUMP or req.type == pycriu.rpc.RESTORE:
- # Setup options for external mounts resolution
+ # Restore cgroups configuration
+ req.opts.manage_cgroups = True
+ # Automatically resolve external mounts
req.opts.auto_ext_mnt = True
req.opts.ext_sharing = True
req.opts.ext_masters = True
--
1.7.1
More information about the CRIU
mailing list