Skip to content

Commit

Permalink
api: introduce sync_fs to diff.ApplyRequest
Browse files Browse the repository at this point in the history
It's flag to synchronize the underlying filesystem containing files
created during Apply.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit bd5c602)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Feb 6, 2024
1 parent 88fd474 commit 4caf440
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 56 deletions.
7 changes: 7 additions & 0 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3730,6 +3730,13 @@ file {
type_name: ".containerd.services.diff.v1.ApplyRequest.PayloadsEntry"
json_name: "payloads"
}
field {
name: "sync_fs"
number: 4
label: LABEL_OPTIONAL
type: TYPE_BOOL
json_name: "syncFs"
}
nested_type {
name: "PayloadsEntry"
field {
Expand Down
122 changes: 66 additions & 56 deletions api/services/diff/v1/diff.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/services/diff/v1/diff.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ message ApplyRequest {
repeated containerd.types.Mount mounts = 2;

map<string, google.protobuf.Any> payloads = 3;
// SyncFs is to synchronize the underlying filesystem containing files.
bool sync_fs = 4;
}

message ApplyResponse {
Expand Down

0 comments on commit 4caf440

Please sign in to comment.