2
0
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:
Pavel Emelyanov
2014-09-29 22:03:42 +04:00
parent b476879239
commit 01f6f890c2
3 changed files with 13 additions and 1 deletions

View File

@@ -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;