From 05bb44960f24d15e80bfc155be005a063ef08df2 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 14 Jan 2013 20:48:09 +0400 Subject: [PATCH] dump: Collect mount information on dump For fanotify dumping we need to find mount points the path lay on, moreover we save a mount point device number in the image, thus collect mount point information on dump stage. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- cr-dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cr-dump.c b/cr-dump.c index a794d450a..1f5dc36ff 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -1566,6 +1566,9 @@ int cr_dump_tasks(pid_t pid, const struct cr_options *opts) if (collect_pstree(pid, opts)) goto err; + if (collect_mount_info()) + goto err; + if (mntns_collect_root(root_item->pid.real)) goto err;