[CRIU] [PATCH 2/2] mnt: don't dump external mounts

Tycho Andersen tycho.andersen at canonical.com
Thu Nov 5 21:46:34 PST 2015


These are going to be bind mounted from the outside world after all, so
there is no use in dumping them.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mount.c b/mount.c
index 9eb7dc8..102d129 100644
--- a/mount.c
+++ b/mount.c
@@ -1592,7 +1592,7 @@ static int dump_one_mountpoint(struct mount_info *pm, struct cr_img *img)
 	if (me.fstype == FSTYPE__AUTO)
 		me.fsname = pm->fstype->name;
 
-	if (pm->parent && !pm->dumped && !pm->need_plugin &&
+	if (pm->parent && !pm->dumped && !pm->need_plugin && !pm->external &&
 	    pm->fstype->dump && fsroot_mounted(pm)) {
 		struct mount_info *t;
 
-- 
2.6.2



More information about the CRIU mailing list