From 4b01400b201b4320dcaad94fccafbaeb689782a9 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 12 May 2017 15:19:59 -0700 Subject: [PATCH] Windows: Add IgnoreFlushesDuringBoot Signed-off-by: John Howard --- config-windows.md | 14 ++++++++++++-- schema/config-windows.json | 4 ++++ specs-go/config.go | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config-windows.md b/config-windows.md index cb3849193..c56e8d3fd 100644 --- a/config-windows.md +++ b/config-windows.md @@ -106,17 +106,27 @@ For more information about tooling to generate a gMSA, see [Deployment Overview] [gMSAOverview]: https://aka.ms/windowscontainers/manage-serviceaccounts [gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools - ## Servicing When a container terminates, the Host Compute Service indicates if a Windows update servicing operation is pending. 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. - ### Example ```json "windows": { "servicing": true } +``` + +## IgnoreFlushesDuringBoot + +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. + +### Example + +```json + "windows": { + "ignoreflushesduringboot": true + } ``` \ No newline at end of file diff --git a/schema/config-windows.json b/schema/config-windows.json index 23b99f0de..c0261e8c3 100644 --- a/schema/config-windows.json +++ b/schema/config-windows.json @@ -73,6 +73,10 @@ "servicing": { "id": "https://opencontainers.org/schema/bundle/windows/servicing", "type": "boolean" + }, + "ignoreflushesduringboot": { + "id": "https://opencontainers.org/schema/bundle/windows/ignoreflushesduringboot", + "type": "boolean" } } } diff --git a/specs-go/config.go b/specs-go/config.go index f82905005..1b3f6d6c7 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -436,6 +436,8 @@ type Windows struct { CredentialSpec interface{} `json:"credentialspec,omitempty"` // Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation. Servicing bool `json:"servicing,omitempty"` + // IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process. + IgnoreFlushesDuringBoot bool `json:"ignoreflushesduringboot,omitempty"` } // WindowsResources has container runtime resource constraints for containers running on Windows.