From f35d7cd7fed4d3bca88f6eb7ce28f8a2efa85b5e Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 12 Dec 2013 16:01:14 +0400 Subject: [PATCH] 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 --- mount.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mount.c b/mount.c index 3b3510103..79b68ca07 100644 --- a/mount.c +++ b/mount.c @@ -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;