mnt: Create roots in criu context

In case root task restore failure we'll have to remove the
roots yard dir from criu, so we have to create one by
criu to at least have the dit name.

It's OK to do it in criu, since the yards is created in
the opts.root which is the same for any mnt ns we deal
with on restore.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2015-09-21 14:08:41 +03:00
parent e3f5ba3c37
commit c5c65fe17a
3 changed files with 35 additions and 10 deletions

View file

@ -117,5 +117,6 @@ extern int fini_mnt_ns(void);
extern char *rst_get_mnt_root(int mnt_id);
extern int ext_mount_add(char *key, char *val);
extern int mntns_maybe_create_roots(void);
#endif /* __CR_MOUNT_H__ */