2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

Allow passing --display_stats via RPC.

Signed-off-by: Michał Cłapiński <mclapinski@google.com>
Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
Michał Cłapiński 2022-09-16 11:06:28 +02:00 committed by Andrei Vagin
parent 0e88a91ff0
commit 1e5ebec39d
2 changed files with 4 additions and 0 deletions

View File

@ -723,6 +723,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
if (req->orphan_pts_master)
opts.orphan_pts_master = true;
if (req->has_display_stats)
opts.display_stats = req->display_stats;
/* Evaluate additional configuration file a second time to overwrite
* all RPC settings. */
if (req->config_file) {

View File

@ -141,6 +141,7 @@ message criu_opts {
optional bool skip_file_rwx_check = 66;
optional bool unprivileged = 67;
optional bool leave_stopped = 69;
optional bool display_stats = 70;
/* optional bool check_mounts = 128; */
}