mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
Namespace restore goes in two steps -- first, clean old mountpoints (except root) that are left after clone(CLONE_NEWNS) call. Next, repopulate the namespace with new mountpoints (except root) read from the image file. This patch adds the skeleton for the above -- reading the mountpoints from current proc and image and calling for mount/umount. The real action will come in further patches. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
16 lines
342 B
C
16 lines
342 B
C
#ifndef MOUNT_H__
|
|
#define MOUNT_H__
|
|
|
|
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__ */
|