2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

mount: Correct s_dev conversion in mount_cr_time_mount()

Convert stat()'s st_dev to kdev bacause mount infos need it.
Like in fetch_rt_stat() function.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Kirill Tkhai
2016-09-27 18:06:00 +03:00
committed by Pavel Emelyanov
parent 337d0cadc6
commit 0aa9eee5f4

View File

@@ -1213,7 +1213,7 @@ static int mount_cr_time_mount(struct ns_id *ns, unsigned int *s_dev, const char
pr_perror("Can't stat on %s\n", target);
exit_code = 0;
} else {
*s_dev = st.st_dev;
*s_dev = MKKDEV(major(st.st_dev), minor(st.st_dev));
exit_code = 1;
}
}