mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
If we dump tasks with mntns, we should look at pathes from point of a mntns root. Now we support a situation when a root of an init task has the same root as the mntns root, because we have not another way to get a root of mntns. A path to an unix socket is copied, because the origin copy will be gone out from the function, where it was created. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
18 lines
401 B
C
18 lines
401 B
C
#ifndef MOUNT_H__
|
|
#define MOUNT_H__
|
|
|
|
extern int mntns_root;
|
|
int mntns_collect_root(pid_t pid);
|
|
|
|
struct proc_mountinfo;
|
|
|
|
extern int open_mount(unsigned int s_dev);
|
|
extern int collect_mount_info(void);
|
|
|
|
struct cr_fdset;
|
|
extern int dump_mnt_ns(int pid, struct cr_fdset *);
|
|
struct cr_options;
|
|
extern void show_mountpoints(int fd, struct cr_options *);
|
|
int prepare_mnt_ns(int pid);
|
|
|
|
#endif /* MOUNT_H__ */
|