Skip to content
Commit 95964f1b authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

mount: Core for creating mount namespace



Namespace restore goes in two steps -- first, clean old mountpoints
(except root) that are left after clone(CLONE_NEWNS) call. Next,
repopulate the namespace with new mountpoints (except root) read
from the image file.

This patch adds the skeleton for the above -- reading the mountpoints
from current proc and image and calling for mount/umount. The real
action will come in further patches.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 57095eb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment