Skip to content

Write runsc state file atomically. - #16169

Open
EtiennePerot wants to merge 1 commit into
google:masterfrom
EtiennePerot:statefile-atomic
Open

EtiennePerot wants to merge 1 commit into
google:masterfrom
EtiennePerot:statefile-atomic

Conversation

@EtiennePerot

Copy link
Copy Markdown
Collaborator

Opening the file for write truncates it, so this prevents creating corrupt state file in case the process gets killed between opening and writing, or when hitting disk-full errors (which it gets on the write, not on the open).

Opening the file for write truncates it, so this prevents creating
corrupt state file in case the process gets killed between opening
and writing, or when hitting disk-full errors (which it gets on the
write, not on the open).
@github-actions
github-actions Bot requested review from fvoznika and trantoji October 22, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants