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