mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
The new field is_threaded is currently marked as required which causes backward compatibility problem when using newer CRIU version to restore dumped image from older version. This commit makes this field optional and reworks the logic the skip fixing up threaded cgroup controllers if there is no information in dumped image. Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
45 lines
935 B
Protocol Buffer
45 lines
935 B
Protocol Buffer
// SPDX-License-Identifier: MIT
|
|
|
|
syntax = "proto2";
|
|
|
|
message cgroup_perms {
|
|
required uint32 mode = 1;
|
|
required uint32 uid = 2;
|
|
required uint32 gid = 3;
|
|
}
|
|
|
|
message cgroup_prop_entry {
|
|
required string name = 1;
|
|
required string value = 2;
|
|
optional cgroup_perms perms = 3;
|
|
}
|
|
|
|
message cgroup_dir_entry {
|
|
required string dir_name = 1;
|
|
repeated cgroup_dir_entry children = 2;
|
|
repeated cgroup_prop_entry properties = 3;
|
|
optional cgroup_perms dir_perms = 4;
|
|
}
|
|
|
|
message cg_controller_entry {
|
|
repeated string cnames = 1;
|
|
repeated cgroup_dir_entry dirs = 2;
|
|
optional bool is_threaded = 3;
|
|
}
|
|
|
|
message cg_member_entry {
|
|
required string name = 1;
|
|
required string path = 2;
|
|
optional uint32 cgns_prefix = 3;
|
|
}
|
|
|
|
message cg_set_entry {
|
|
required uint32 id = 1;
|
|
repeated cg_member_entry ctls = 2;
|
|
}
|
|
|
|
message cgroup_entry {
|
|
repeated cg_set_entry sets = 1;
|
|
repeated cg_controller_entry controllers = 2;
|
|
}
|