Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write manifests atomically #1816

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Commits on Sep 28, 2022

  1. Write manifests atomically

    Use a temporary-write-and-rename approach to write manifests to disk, so
    that the appliers never see partially written files. The strategy is as
    follows: Create a temporary file in the same directory as the target,
    write to it, sync and close the file handle, do a chmod and a rename. As
    a result, there's no more need to ignore chmod events in the stack
    applier. Those events actually *can* matter, when files become readable
    or unreadable for the k0s process.
    
    Signed-off-by: Tom Wieczorek <[email protected]>
    twz123 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    8ea5626 View commit details
    Browse the repository at this point in the history