mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
mount: Don't validate mounts read from proc on restore
Validation means -- check chat we can _restore_ this tree. Those read from proc can be in any state -- we're going to umount them (can do anything) and do path resolution (work for any knots as well). Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
e9f9fdb9b3
commit
f35d7cd7fe
6
mount.c
6
mount.c
@ -91,12 +91,6 @@ int collect_mount_info(pid_t pid, bool parse)
|
|||||||
pr_err("Building mount tree %d failed\n", getpid());
|
pr_err("Building mount tree %d failed\n", getpid());
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (validate_mounts(mntinfo_tree)) {
|
|
||||||
mntinfo_tree = NULL;
|
|
||||||
pr_err("Validating mount tree %d failed\n", getpid());
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user