mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-03 15:23:04 +00:00
Before the patch cg tree section from cgroup00 test looked like this
{
cnames: "name=zdtmtst"
dirs: {
path: "/subcg"
children: {
path: "/subcg/subsubcg"
children: <empty>
properties: <empty>
}
properties: <empty>
}
}
this /subsg in the children is excessive. Turn this into directory names.
Now the section looks like
{
cnames: "name=zdtmtst"
dirs: {
dir_name: "subcg"
children: {
dir_name: "subsubcg"
children: <empty>
properties: <empty>
}
properties: <empty>
}
}
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Tycho Andersen <tycho.andersen@canonical.com>
30 lines
623 B
Protocol Buffer
30 lines
623 B
Protocol Buffer
message cgroup_prop_entry {
|
|
required string name = 1;
|
|
required string value = 2;
|
|
}
|
|
|
|
message cgroup_dir_entry {
|
|
required string dir_name = 1;
|
|
repeated cgroup_dir_entry children = 2;
|
|
repeated cgroup_prop_entry properties = 3;
|
|
}
|
|
|
|
message cg_controller_entry {
|
|
repeated string cnames = 1;
|
|
repeated cgroup_dir_entry dirs = 2;
|
|
}
|
|
|
|
message cg_member_entry {
|
|
required string name = 1;
|
|
required string path = 2;
|
|
}
|
|
|
|
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;
|
|
}
|