criu/include/mount.h
Cyrill Gorcunov e54ad19a06 mount: Add phys_stat_dev_match helper
This helper serves to hide fs specifics (in particular
btrfs) thus the caller won't need the details.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-12-04 19:23:32 +04:00

27 lines
711 B
C

#ifndef __CR_MOUNT_H__
#define __CR_MOUNT_H__
extern int mntns_root;
extern int mntns_collect_root(pid_t pid);
struct proc_mountinfo;
extern int open_mount(unsigned int s_dev);
extern int collect_mount_info(pid_t pid);
extern struct fstype *find_fstype_by_name(char *fst);
struct cr_fdset;
extern int dump_mnt_ns(int pid, int ns_id);
extern 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;
extern bool phys_stat_dev_match(dev_t st_dev, dev_t phys_dev);
#endif /* __CR_MOUNT_H__ */