commit | 162ddedeea43e6e9f7b397a13e1262069557a510 | [log] [download] |
---|---|---|
author | Andrew Vagin <avagin@openvz.org> | Wed Sep 26 22:49:23 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Thu Sep 27 19:15:37 2012 +0400 |
tree | 758fc93aaa8e1b5e7be229cadb44c8018b8eddab | |
parent | 8aea82a60caf5c899c4abd7a3c6f9e51b60eb2a8 [diff] |
vzctl: don't need to umount each mount points for cleaning up mntns (v2) pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. So put_old can be detached and all other mount points will be unvisible from this mntns, because nobody holds them. v2: delete more lines of code [kir@openvz.org: now this looks exactly like my initial version :)] Signed-off-by: Andrey Vagin <avagin@openvz.org>