2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +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

@@ -121,6 +121,7 @@ struct mount_info {
int is_file;
bool is_ns_root;
struct mount_info *next;
struct ns_id *nsid;
/* tree linkage */
struct mount_info *parent;
@@ -144,7 +145,7 @@ extern void mnt_entry_free(struct mount_info *mi);
struct vm_area_list;
extern struct mount_info *parse_mountinfo(pid_t pid);
extern struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid);
extern int parse_pid_stat(pid_t pid, struct proc_pid_stat *s);
extern int parse_pid_stat_small(pid_t pid, struct proc_pid_stat_small *s);
extern int parse_smaps(pid_t pid, struct vm_area_list *vma_area_list, bool use_map_files);