[CRIU] [PATCH 1/2] remap: don't try to remap other files in /proc

Tycho Andersen tycho.andersen at canonical.com
Fri Sep 19 09:34:07 PDT 2014


We can't remap these files correctly anyway, so we should just return success
if we find one of these files to remap.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 files-reg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/files-reg.c b/files-reg.c
index 508263a..f788290 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -634,7 +634,8 @@ static int check_path_remap(char *rpath, int plen, const struct fd_parms *parms,
 				pr_info("Dumping dead process remap of %d\n", pid);
 				return dump_dead_process_remap(pid, rpath + 1, plen - 1, ost, lfd, id, nsid);
 			}
-		}
+		} else
+			return 0;
 	}
 
 	if (ost->st_nlink == 0)
-- 
1.9.1



More information about the CRIU mailing list