mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
namespaces: parametrized namespace option introduced
v2: strlen() check removed from parse_ns_string() Now '-n' option must be followed by namespaces tags, separated by commas. Currently, only "uts" namespace is supported. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
1e694235b4
commit
0213d3ec64
@@ -26,7 +26,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int do_dump_namespaces(int ns_pid)
|
||||
static int do_dump_namespaces(int ns_pid, unsigned int ns_flags)
|
||||
{
|
||||
struct cr_fdset *fdset;
|
||||
int ret;
|
||||
@@ -42,7 +42,7 @@ static int do_dump_namespaces(int ns_pid)
|
||||
|
||||
}
|
||||
|
||||
int dump_namespaces(int ns_pid)
|
||||
int dump_namespaces(int ns_pid, unsigned int ns_flags)
|
||||
{
|
||||
int pid, ret, status;
|
||||
|
||||
@@ -66,7 +66,7 @@ int dump_namespaces(int ns_pid)
|
||||
}
|
||||
|
||||
if (pid == 0) {
|
||||
ret = do_dump_namespaces(ns_pid);
|
||||
ret = do_dump_namespaces(ns_pid, ns_flags);
|
||||
exit(ret);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user