[CRIU] [PATCH 28/39] irmap: mntns_collect_root in irmap_lookup

Andrey Vagin avagin at openvz.org
Mon Apr 21 07:23:38 PDT 2014


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 irmap.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/irmap.c b/irmap.c
index 22750d2..ef2026f 100644
--- a/irmap.c
+++ b/irmap.c
@@ -23,6 +23,7 @@
 #include "util.h"
 #include "image.h"
 #include "stats.h"
+#include "pstree.h"
 
 #include "protobuf.h"
 #include "protobuf/fsnotify.pb-c.h"
@@ -226,6 +227,9 @@ char *irmap_lookup(unsigned int s_dev, unsigned long i_ino)
 
 	pr_debug("Resolving %x:%lx path\n", s_dev, i_ino);
 
+	if (mntns_collect_root(root_item->pid.real) < 0)
+		goto out;
+
 	timing_start(TIME_IRMAP_RESOLVE);
 
 	hv = irmap_hashfn(s_dev, i_ino);
-- 
1.8.5.3



More information about the CRIU mailing list