mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
mount: export global variables for mount-v2
Export root_yard_mp and it's mntns_roots. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
972a598628
commit
c29675c9a5
@@ -223,4 +223,7 @@ extern int restore_ext_mount(struct mount_info *mi);
|
|||||||
extern int cr_pivot_root(char *root);
|
extern int cr_pivot_root(char *root);
|
||||||
extern int print_ns_root(struct ns_id *ns, int remap_id, char *buf, int bs);
|
extern int print_ns_root(struct ns_id *ns, int remap_id, char *buf, int bs);
|
||||||
|
|
||||||
|
extern struct mount_info *root_yard_mp;
|
||||||
|
extern char *mnt_roots;
|
||||||
|
|
||||||
#endif /* __CR_MOUNT_H__ */
|
#endif /* __CR_MOUNT_H__ */
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
#define CONTEXT_OPT "context="
|
#define CONTEXT_OPT "context="
|
||||||
|
|
||||||
/* A helper mount_info entry for the roots yard */
|
/* A helper mount_info entry for the roots yard */
|
||||||
static struct mount_info *root_yard_mp = NULL;
|
struct mount_info *root_yard_mp = NULL;
|
||||||
|
|
||||||
static LIST_HEAD(delayed_unbindable);
|
static LIST_HEAD(delayed_unbindable);
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ static bool mounts_equal(struct mount_info *a, struct mount_info *b)
|
|||||||
* mnt_roots is a temporary directory for restoring sub-trees of
|
* mnt_roots is a temporary directory for restoring sub-trees of
|
||||||
* non-root namespaces.
|
* non-root namespaces.
|
||||||
*/
|
*/
|
||||||
static char *mnt_roots;
|
char *mnt_roots;
|
||||||
|
|
||||||
static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
|
static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user