mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
zdtm: handle --pre-dump-mode in the rpc mode
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
befbbd9bba
commit
d305576996
@ -912,6 +912,13 @@ class criu_rpc:
|
||||
if arg == '--prev-images-dir':
|
||||
criu.opts.parent_img = args.pop(0)
|
||||
continue
|
||||
if arg == '--pre-dump-mode':
|
||||
key = args.pop(0)
|
||||
mode = crpc.rpc.READ
|
||||
if key == "splice":
|
||||
mode = crpc.rpc.SPLICE
|
||||
criu.opts.pre_dump_mode = mode
|
||||
continue
|
||||
if arg == '--track-mem':
|
||||
criu.opts.track_mem = True
|
||||
continue
|
||||
@ -929,7 +936,7 @@ class criu_rpc:
|
||||
inhfd.key = key
|
||||
continue
|
||||
|
||||
raise test_fail_exc('RPC for %s required' % arg)
|
||||
raise test_fail_exc('RPC for %s(%s) required' % (arg, args.pop(0)))
|
||||
|
||||
@staticmethod
|
||||
def run(action,
|
||||
|
Loading…
x
Reference in New Issue
Block a user