mount: Handle deleted bindmounts

To handle deleted bindmounts we simply create
the former directory bindmount lived at, mount
the target and remove the directory back.

For this sake we add @deleted entry into the image.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2015-08-17 23:09:48 +03:00 committed by Pavel Emelyanov
parent 60f6ec7dd6
commit 80ef8fd2fb
4 changed files with 33 additions and 2 deletions

View file

@ -58,6 +58,7 @@ struct mount_info {
};
bool need_plugin;
bool is_ns_root;
bool deleted;
struct mount_info *next;
struct ns_id *nsid;