mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
javaTests: Add --file-locks option
Resolves #1370 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
56d7dbd7cd
commit
ae143161b8
1 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@ public class CheckpointRestore {
|
|||
private void checkpoint(String pid, String checkpointOpt) throws IOException, InterruptedException {
|
||||
ProcessBuilder builder;
|
||||
System.out.println("Checkpointing process " + pid);
|
||||
String command = "../../criu/criu dump --shell-job -t " + pid + " -vvv -D " + logFolder + " -o dump.log";
|
||||
String command = "../../criu/criu dump --shell-job -t " + pid + " --file-locks -v4 -D " + logFolder + " -o dump.log";
|
||||
if (0 == checkpointOpt.length()) {
|
||||
String[] cmd = command.split(" ");
|
||||
builder = new ProcessBuilder(cmd);
|
||||
|
|
@ -411,7 +411,7 @@ public class CheckpointRestore {
|
|||
private void restore(String restoreOpt) throws IOException, InterruptedException {
|
||||
ProcessBuilder builder;
|
||||
System.out.println("Restoring process");
|
||||
String command = "../../criu/criu restore -d -vvv --shell-job -D " + logFolder + " -o restore.log";
|
||||
String command = "../../criu/criu restore -d --file-locks -v4 --shell-job -D " + logFolder + " -o restore.log";
|
||||
if (0 == restoreOpt.length()) {
|
||||
String[] cmd = command.split(" ");
|
||||
builder = new ProcessBuilder(cmd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue