mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-24 02:35:41 +00:00
These are structs that (now) tie together ns string and the CLONE_ flag. It's nice to have one (some code becomes simpler) and will help us with auto-namespaces detection. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
27 lines
714 B
C
27 lines
714 B
C
#ifndef __CR_MOUNT_H__
|
|
#define __CR_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);
|
|
extern struct fstype *find_fstype_by_name(char *fst);
|
|
|
|
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);
|
|
|
|
struct mount_info;
|
|
extern struct mount_info *lookup_mnt_id(unsigned int id);
|
|
extern struct mount_info *lookup_mnt_sdev(unsigned int s_dev);
|
|
|
|
extern struct ns_desc mnt_ns_desc;
|
|
|
|
#endif /* __CR_MOUNT_H__ */
|