[CRIU] [PATCH 07/12] mounts: handle propogation for the global root
Andrey Vagin
avagin at openvz.org
Fri Jan 10 05:50:01 PST 2014
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
mount.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/mount.c b/mount.c
index 739c02b..0db86d8 100644
--- a/mount.c
+++ b/mount.c
@@ -998,6 +998,10 @@ static int propagate_mount(struct mount_info *mi)
struct mount_info *t;
propagate_siblings(mi);
+
+ if (mi->parent == NULL)
+ goto skip;
+
umount_from_slaves(mi);
/* Propagate this mount to everyone from a parent group */
@@ -1015,6 +1019,7 @@ static int propagate_mount(struct mount_info *mi)
}
}
+skip:
/*
* FIXME Currently non-root mounts can be restored
* only if a proper root mount exists
--
1.8.3.1
More information about the CRIU
mailing list