2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

mount: set nsid for each mount point

We want to look up mntns by mnt_id.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-04-21 18:23:36 +04:00
committed by Pavel Emelyanov
parent 5418938ec3
commit 1b3fa9bc25
3 changed files with 8 additions and 5 deletions

View File

@@ -906,7 +906,7 @@ err:
return ret;
}
struct mount_info *parse_mountinfo(pid_t pid)
struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid)
{
struct mount_info *list = NULL;
FILE *f;
@@ -927,6 +927,8 @@ struct mount_info *parse_mountinfo(pid_t pid)
if (!new)
goto err;
new->nsid = nsid;
new->next = list;
list = new;