Skip to content

Commit 4d51b59

Browse files
authored
Merge pull request #816 from jhowardmsft/ignoreflushes
Windows: Add IgnoreFlushesDuringBoot
2 parents 79ed7d2 + 4b01400 commit 4d51b59

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

config-windows.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,27 @@ For more information about tooling to generate a gMSA, see [Deployment Overview]
106106
[gMSAOverview]: https://aka.ms/windowscontainers/manage-serviceaccounts
107107
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools
108108

109-
110109
## <a name="configWindowsServicing" />Servicing
111110

112111
When a container terminates, the Host Compute Service indicates if a Windows update servicing operation is pending.
113112
You can indicate that a container should be started in a mode to apply pending servicing operations via the OPTIONAL `servicing` field of the Windows configuration.
114113

115-
116114
### Example
117115

118116
```json
119117
"windows": {
120118
"servicing": true
121119
}
120+
```
121+
122+
## <a name="configWindowsIgnoreFlushesDuringBoot" />IgnoreFlushesDuringBoot
123+
124+
You can indicate that a container should be started in an a mode where disk flushes are not performed during container boot via the OPTIONAL `ignoreflushesduringboot` field of the Windows configuration.
125+
126+
### Example
127+
128+
```json
129+
"windows": {
130+
"ignoreflushesduringboot": true
131+
}
122132
```

schema/config-windows.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
"servicing": {
7474
"id": "https://opencontainers.org/schema/bundle/windows/servicing",
7575
"type": "boolean"
76+
},
77+
"ignoreflushesduringboot": {
78+
"id": "https://opencontainers.org/schema/bundle/windows/ignoreflushesduringboot",
79+
"type": "boolean"
7680
}
7781
}
7882
}

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ type Windows struct {
436436
CredentialSpec interface{} `json:"credentialspec,omitempty"`
437437
// Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
438438
Servicing bool `json:"servicing,omitempty"`
439+
// IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process.
440+
IgnoreFlushesDuringBoot bool `json:"ignoreflushesduringboot,omitempty"`
439441
}
440442

441443
// WindowsResources has container runtime resource constraints for containers running on Windows.

0 commit comments

Comments
 (0)