2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 18:07:57 +00:00

criu-ns: add support for 'check' action

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov 2021-07-26 21:39:07 +01:00 committed by Andrei Vagin
parent 868bffba4d
commit 6be9345fb1
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,8 @@ SYNOPSIS
*criu-ns* 'restore' [<options>] *criu-ns* 'restore' [<options>]
*criu-ns* 'check' [<options>]
DESCRIPTION DESCRIPTION
----------- -----------
The *criu-ns* command executes 'criu' in a new PID and mount namespace. The *criu-ns* command executes 'criu' in a new PID and mount namespace.

View File

@ -214,6 +214,7 @@ Usage:
dump checkpoint a process/tree identified by pid dump checkpoint a process/tree identified by pid
pre-dump pre-dump task(s) minimizing their frozen time pre-dump pre-dump task(s) minimizing their frozen time
restore restore a process/tree restore restore a process/tree
check checks whether the kernel support is up-to-date
""".format(sys.argv[0])) """.format(sys.argv[0]))
@ -227,6 +228,8 @@ if __name__ == "__main__":
res = wrap_restore() res = wrap_restore()
elif action in ['dump', 'pre-dump']: elif action in ['dump', 'pre-dump']:
res = wrap_dump() res = wrap_dump()
elif action == 'check':
run_criu(sys.argv[1:])
else: else:
print('Unsupported action {} for criu-ns'.format(action)) print('Unsupported action {} for criu-ns'.format(action))
res = -1 res = -1