[CRIU] [RFC 2/4] mount: Build mount tree on dump restore early, if needed

Cyrill Gorcunov gorcunov at openvz.org
Fri Dec 6 12:41:46 PST 2013


For paths resolution we will need mount tree to be parsed
and built, but it's not that simple -- the current code
implies that once parsed the tree must not be re-parsed
again, so we pass @parse argument from a caller: if a task
we're restoring do not use mount namespace, we should parse
mount tree early, otherwise defer this action until mount
tree is read from the image.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c       |  2 +-
 cr-restore.c    |  9 ++++++++-
 include/mount.h |  2 +-
 mount.c         | 24 +++++++++++++++++++++++-
 4 files changed, 33 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-mount-Build-mount-tree-on-dump-restore-early-if-need.patch
Type: text/x-patch
Size: 2664 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20131207/b777a0c4/attachment.bin>


More information about the CRIU mailing list