[CRIU] [PATCH 1/2] pre-dump: don't allow --lazy-pages option
Mike Rapoport
rppt at linux.ibm.com
Mon Dec 10 18:44:10 MSK 2018
Using --lazy-pages with pre-dump causes partial memory dump and it's not
the intention. The whole point of pre-dump is to keep amount of memory that
would be dumped during tasks freeze to minimum.
Disallow running pre-dump with --lazy-pages.
Signed-off-by: Mike Rapoport <rppt at linux.ibm.com>
---
criu/crtools.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/criu/crtools.c b/criu/crtools.c
index 64d298d..c8b9ab1 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -239,6 +239,11 @@ int main(int argc, char *argv[], char *envp[])
if (!opts.tree_id)
goto opt_pid_missing;
+ if (opts.lazy_pages) {
+ pr_err("Cannot pre-dump with --lazy-pages\n");
+ return 1;
+ }
+
return cr_pre_dump_tasks(opts.tree_id) != 0;
}
--
2.7.4
More information about the CRIU
mailing list