Commit 685f4caa authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

pre-dump: don't allow --lazy-pages option

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: 's avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent bdd4c5a8
...@@ -238,6 +238,11 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -238,6 +238,11 @@ int main(int argc, char *argv[], char *envp[])
if (!opts.tree_id) if (!opts.tree_id)
goto opt_pid_missing; 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; return cr_pre_dump_tasks(opts.tree_id) != 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment