criu/include/mount.h
Andrey Vagin 420325dca6 restore: add an option for changing a root file system (v2)
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>
2012-08-02 16:07:43 +04:00

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__ */