[CRIU] [PATCH 26/37] irmap: mntns_collect_root in irmap_lookup

Andrey Vagin avagin at openvz.org
Fri Apr 18 07:43:04 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