[CRIU] [PATCH] files: Explicitly set linked remap type

Pavel Emelyanov xemul at virtuozzo.com
Wed Nov 30 00:21:01 PST 2016


This makes crit show the type, which is handy. Also this will let us
deprecate the old format where remap type was encoded into remap ID.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>

---

diff --git a/criu/files-reg.c b/criu/files-reg.c
index 650f314..3834f38 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -785,6 +785,8 @@ static int dump_linked_remap(char *path, int len, const struct stat *ost,
 
 	rpe.orig_id = id;
 	rpe.remap_id = lid;
+	rpe.has_remap_type = true;
+	rpe.remap_type = REMAP_TYPE__LINKED;
 
 	return pb_write_one(img_from_set(glob_imgset, CR_FD_REMAP_FPATH),
 			&rpe, PB_REMAP_FPATH);


More information about the CRIU mailing list