You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new driver-specific `sync` configuration option that controls
filesystem synchronization during layer operations. When set to
"filesystem", the driver ensures all pending writes are flushed to the
file system before marking a layer as complete.
This helps prevent data corruption in scenarios where the system crashes
or loses power before the filesystem has finished writing layer data.
Only the vfs and overlay backends support the new flag.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Copy file name to clipboardExpand all lines: storage/docs/containers-storage.conf.5.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,6 +219,16 @@ based file systems.
219
219
Use ComposeFS to mount the data layers image. ComposeFS support is experimental and not recommended for production use.
220
220
This is a "string bool": "false"|"true" (cannot be native TOML boolean)
221
221
222
+
**sync**="none|filesystem"
223
+
Filesystem synchronization mode for layer creation. (default: "none")
224
+
225
+
-`none`: No synchronization.
226
+
Layer operations complete without calling syncfs().
227
+
228
+
-`filesystem`: Sync before completion.
229
+
Flush all pending writes to the file system before marking the layer
230
+
as present. This helps prevent data corruption if the system
231
+
crashes or loses power during layer operations.
222
232
223
233
### STORAGE OPTIONS FOR VFS TABLE
224
234
@@ -228,6 +238,16 @@ The `storage.options.vfs` table supports the following options:
228
238
ignore_chown_errors can be set to allow a non privileged user running with a single UID within a user namespace to run containers. The user can pull and use any image even those with multiple uids. Note multiple UIDs will be squashed down to the default uid in the container. These images will have no separation between the users in the container.
229
239
This is a "string bool": "false"|"true" (cannot be native TOML boolean)
230
240
241
+
**sync**=""
242
+
Filesystem synchronization mode for layer creation. (default: "")
243
+
244
+
-`none`: No synchronization
245
+
Layer operations complete without calling syncfs().
246
+
247
+
-`filesystem`: Sync before completion
248
+
Flush all pending writes to the file system before marking the layer
249
+
as present. This helps prevent data corruption if the system
0 commit comments