Skip to content

Fsync parent directory after atomic save#78

Merged
zackslash merged 1 commit into
mainfrom
fix/settings-dir-fsync
Jul 18, 2026
Merged

Fsync parent directory after atomic save#78
zackslash merged 1 commit into
mainfrom
fix/settings-dir-fsync

Conversation

@zackslash

Copy link
Copy Markdown
Owner

Both atomic-save paths (settings + scrollback) fsynced the file content before rename but not the parent directory, so a power loss after rename could lose the new dirent entry. Now fsyncs the parent directory after a successful rename in both paths.

@zackslash
zackslash merged commit bfc33de into main Jul 18, 2026
3 checks passed
@zackslash
zackslash deleted the fix/settings-dir-fsync branch July 18, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant