[CRIU] [PATCH] img: Warn about absolute paths for parent images dir
Pavel Emelyanov
xemul at virtuozzo.com
Tue Mar 1 05:14:15 PST 2016
When working with mntns, the absolute path in parent symlink will
not be open-able on restore. However, completely banning this case
is not good.
Affects #116
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
diff --git a/criu/image.c b/criu/image.c
index 4349210..595e1a2 100644
--- a/criu/image.c
+++ b/criu/image.c
@@ -415,6 +415,10 @@ int open_image_dir(char *dir)
pr_perror("Can't link parent snapshot");
goto err;
}
+
+ if (opts.img_parent[0] == '/')
+ pr_warn("Absolute paths for parent links "
+ "may not work on restore!\n");
}
return 0;
More information about the CRIU
mailing list