Commit b415a3c1 authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Explicitly set linked remap type

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.

travis-ci: success for files: Explicitly set linked remap type
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 3f9a0aae
......@@ -787,6 +787,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment