Commit 0aa9eee5 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

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: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 337d0cad
......@@ -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;
}
}
......
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