mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
mnt: Preparations for mountpoints dumping
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "syscall.h"
|
||||
#include "uts_ns.h"
|
||||
#include "ipc_ns.h"
|
||||
#include "mount.h"
|
||||
|
||||
int switch_ns(int pid, int type, char *ns)
|
||||
{
|
||||
@@ -49,6 +50,12 @@ static int do_dump_namespaces(int ns_pid, unsigned int ns_flags)
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
}
|
||||
if (ns_flags & CLONE_NEWNS) {
|
||||
pr_info("Dump MNT namespace (mountpoints)\n");
|
||||
ret = dump_mnt_ns(ns_pid, fdset);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
}
|
||||
err:
|
||||
close_cr_fdset(&fdset);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user