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:
committed by
Pavel Emelyanov
parent
5418938ec3
commit
1b3fa9bc25
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user