2013-10-02 16:04:11 +04:00
|
|
|
message criu_opts {
|
2013-09-16 15:23:00 +04:00
|
|
|
required int32 images_dir_fd = 1;
|
2013-10-02 16:04:11 +04:00
|
|
|
optional int32 pid = 2; //if not set on dump, will dump requesting process
|
2013-09-16 15:23:00 +04:00
|
|
|
|
|
|
|
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;
|
2013-09-16 15:21:13 +04:00
|
|
|
optional int32 log_level = 9 [default = 2];
|
2013-10-02 16:01:44 +04:00
|
|
|
optional string log_file = 10;
|
2013-09-13 13:44:02 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
message criu_dump_resp {
|
2013-09-16 15:36:12 +04:00
|
|
|
optional bool restored = 1;
|
2013-09-13 13:44:02 +04:00
|
|
|
}
|
|
|
|
|
2013-10-02 23:42:18 +04:00
|
|
|
message criu_restore_resp {
|
|
|
|
required int32 pid = 1;
|
|
|
|
}
|
|
|
|
|
2013-09-16 15:36:12 +04:00
|
|
|
enum criu_req_type {
|
|
|
|
EMPTY = 0;
|
|
|
|
DUMP = 1;
|
2013-10-02 23:42:18 +04:00
|
|
|
RESTORE = 2;
|
2013-09-16 15:36:12 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Request -- each type corresponds to must-be-there
|
|
|
|
* request arguments of respective type
|
|
|
|
*/
|
|
|
|
|
|
|
|
message criu_req {
|
|
|
|
required criu_req_type type = 1;
|
|
|
|
|
2013-10-02 16:04:11 +04:00
|
|
|
optional criu_opts opts = 2;
|
2013-09-16 15:36:12 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Responce -- it states whether the request was served
|
|
|
|
* and additional request-specific informarion
|
|
|
|
*/
|
2013-09-13 13:44:02 +04:00
|
|
|
|
2013-09-16 15:36:12 +04:00
|
|
|
message criu_resp {
|
|
|
|
required criu_req_type type = 1;
|
|
|
|
required bool success = 2;
|
2013-09-13 13:44:02 +04:00
|
|
|
|
2013-09-16 15:36:12 +04:00
|
|
|
optional criu_dump_resp dump = 3;
|
2013-10-02 23:42:18 +04:00
|
|
|
optional criu_restore_resp restore = 4;
|
2013-09-13 13:44:02 +04:00
|
|
|
}
|