[CRIU] [PATCH 1/2] files-reg: make error message in clean_one_remap contain mntns path

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Mon Dec 10 15:33:55 MSK 2018


rmntns_root - is fd number of opened mntns root directory, these info
doesn't help to identify mntns involved in logs, show path to these
mntns instead.

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/files-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/files-reg.c b/criu/files-reg.c
index c4f4e1616..a20589b56 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -722,7 +722,7 @@ static int clean_one_remap(struct remap_info *ri)
 	ret = unlinkat(rmntns_root, remap->rpath, remap->is_dir ? AT_REMOVEDIR : 0);
 	if (ret < 0) {
 		close(rmntns_root);
-		pr_perror("Couldn't unlink remap %d %s", rmntns_root, remap->rpath);
+		pr_perror("Couldn't unlink remap %s %s", path, remap->rpath);
 		return -1;
 	}
 	close(rmntns_root);
-- 
2.17.1



More information about the CRIU mailing list