Commit f35d7cd7 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e9f9fdb9
......@@ -91,12 +91,6 @@ int collect_mount_info(pid_t pid, bool parse)
pr_err("Building mount tree %d failed\n", getpid());
return -1;
}
if (validate_mounts(mntinfo_tree)) {
mntinfo_tree = NULL;
pr_err("Validating mount tree %d failed\n", getpid());
return -1;
}
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment