mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 01:26:22 +00:00
We need to dump content of some fs like binfmt_misc, tmpfs, ... To facilitate this the existing list of filesystems is turned into an array of structures with dump and restore callbacks. Each FS may declare them they need. v2: rework encode/decode_fstype not to do it twice. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
20 lines
521 B
C
20 lines
521 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);
|
|
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);
|
|
#endif /* MOUNT_H__ */
|