mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 18:19:39 +00:00
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
52 lines
1 KiB
Protocol Buffer
52 lines
1 KiB
Protocol Buffer
message criu_opts {
|
|
required int32 images_dir_fd = 1;
|
|
optional int32 pid = 2; //if not set on dump, will dump requesting process
|
|
|
|
optional bool leave_running = 3;
|
|
optional bool ext_unix_sk = 4;
|
|
optional bool tcp_established = 5;
|
|
optional bool evasive_devices = 6;
|
|
optional bool shell_job = 7;
|
|
optional bool file_locks = 8;
|
|
optional int32 log_level = 9 [default = 2];
|
|
optional string log_file = 10;
|
|
}
|
|
|
|
message criu_dump_resp {
|
|
optional bool restored = 1;
|
|
}
|
|
|
|
message criu_restore_resp {
|
|
required int32 pid = 1;
|
|
}
|
|
|
|
enum criu_req_type {
|
|
EMPTY = 0;
|
|
DUMP = 1;
|
|
RESTORE = 2;
|
|
CHECK = 3;
|
|
}
|
|
|
|
/*
|
|
* Request -- each type corresponds to must-be-there
|
|
* request arguments of respective type
|
|
*/
|
|
|
|
message criu_req {
|
|
required criu_req_type type = 1;
|
|
|
|
optional criu_opts opts = 2;
|
|
}
|
|
|
|
/*
|
|
* Responce -- it states whether the request was served
|
|
* and additional request-specific informarion
|
|
*/
|
|
|
|
message criu_resp {
|
|
required criu_req_type type = 1;
|
|
required bool success = 2;
|
|
|
|
optional criu_dump_resp dump = 3;
|
|
optional criu_restore_resp restore = 4;
|
|
}
|