Skip to content

Commit 4caf440

Browse files
committed
api: introduce sync_fs to diff.ApplyRequest
It's flag to synchronize the underlying filesystem containing files created during Apply. Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit bd5c602) Signed-off-by: Wei Fu <[email protected]>
1 parent 88fd474 commit 4caf440

3 files changed

Lines changed: 75 additions & 56 deletions

File tree

api/next.pb.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,6 +3730,13 @@ file {
37303730
type_name: ".containerd.services.diff.v1.ApplyRequest.PayloadsEntry"
37313731
json_name: "payloads"
37323732
}
3733+
field {
3734+
name: "sync_fs"
3735+
number: 4
3736+
label: LABEL_OPTIONAL
3737+
type: TYPE_BOOL
3738+
json_name: "syncFs"
3739+
}
37333740
nested_type {
37343741
name: "PayloadsEntry"
37353742
field {

api/services/diff/v1/diff.pb.go

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

api/services/diff/v1/diff.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ message ApplyRequest {
4444
repeated containerd.types.Mount mounts = 2;
4545

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

4951
message ApplyResponse {

0 commit comments

Comments
 (0)