2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +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:
Pavel Tikhomirov 2021-12-21 14:04:19 +03:00 committed by Andrei Vagin
parent 972a598628
commit c29675c9a5
2 changed files with 5 additions and 2 deletions

View File

@ -223,4 +223,7 @@ extern int restore_ext_mount(struct mount_info *mi);
extern int cr_pivot_root(char *root);
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__ */

View File

@ -37,7 +37,7 @@
#define CONTEXT_OPT "context="
/* 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);
@ -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
* non-root namespaces.
*/
static char *mnt_roots;
char *mnt_roots;
static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
{