mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
e3f5ba3c37
commit
c5c65fe17a
3 changed files with 35 additions and 10 deletions
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue