mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
The option is -r|--pivot-root and an argument is a path to new root. A root task will make pivot_root. LXC CT does that, so we need that for restoring. v2: s/pivot-root/root/ Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
19 lines
467 B
C
19 lines
467 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);
|
|
|
|
extern int pivot_root(const char *new_root, const char *put_old);
|
|
#endif /* MOUNT_H__ */
|