mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
ns: Introduce collect_namespaces routine
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
11
namespaces.c
11
namespaces.c
@@ -528,6 +528,17 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int collect_namespaces(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = collect_mnt_namespaces();
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int prepare_namespace(struct pstree_item *item, unsigned long clone_flags)
|
||||
{
|
||||
pid_t pid = item->pid.virt;
|
||||
|
Reference in New Issue
Block a user