X Tutup
Skip to content

Commit 83ebcf9

Browse files
committed
runtimev1: add image-path and work-path for c/r
add ImagePath and WorkPath for checkpoint process, add CriuImagePath and CriuWorkPath for create process in runtime v1 protobuf Signed-off-by: Ace-Tang <aceapril@126.com>
1 parent 75c490c commit 83ebcf9

File tree

3 files changed

+235
-35
lines changed

3 files changed

+235
-35
lines changed

runtime/linux/runctypes/next.pb.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ file {
112112
type: TYPE_UINT32
113113
json_name: "ioGid"
114114
}
115+
field {
116+
name: "criu_work_path"
117+
number: 12
118+
label: LABEL_OPTIONAL
119+
type: TYPE_STRING
120+
json_name: "criuWorkPath"
121+
}
122+
field {
123+
name: "criu_image_path"
124+
number: 13
125+
label: LABEL_OPTIONAL
126+
type: TYPE_STRING
127+
json_name: "criuImagePath"
128+
}
115129
}
116130
message_type {
117131
name: "CheckpointOptions"
@@ -164,6 +178,20 @@ file {
164178
type: TYPE_STRING
165179
json_name: "cgroupsMode"
166180
}
181+
field {
182+
name: "work_path"
183+
number: 8
184+
label: LABEL_OPTIONAL
185+
type: TYPE_STRING
186+
json_name: "workPath"
187+
}
188+
field {
189+
name: "image_path"
190+
number: 9
191+
label: LABEL_OPTIONAL
192+
type: TYPE_STRING
193+
json_name: "imagePath"
194+
}
167195
}
168196
message_type {
169197
name: "ProcessDetails"

runtime/linux/runctypes/runc.pb.go

Lines changed: 203 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/linux/runctypes/runc.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ message CreateOptions {
2525
string shim_cgroup = 9;
2626
uint32 io_uid = 10;
2727
uint32 io_gid = 11;
28+
string criu_work_path = 12;
29+
string criu_image_path = 13;
2830
}
2931

3032
message CheckpointOptions {
@@ -35,6 +37,8 @@ message CheckpointOptions {
3537
bool file_locks = 5;
3638
repeated string empty_namespaces = 6;
3739
string cgroups_mode = 7;
40+
string work_path = 8;
41+
string image_path = 9;
3842
}
3943

4044
message ProcessDetails {

0 commit comments

Comments
 (0)
X Tutup