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

fsync parent also after rename #8

Open
radumarias opened this issue May 15, 2024 · 2 comments
Open

fsync parent also after rename #8

radumarias opened this issue May 15, 2024 · 2 comments

Comments

@radumarias
Copy link

After reading more I found it's recommended to fsync parent also to be sure data is persisted ok.
You can see here more https://www.quora.com/Linux/When-should-you-fsync-the-containing-directory-in-addition-to-the-file-itself
Also I see other implementations are doing it https://github.com/untitaker/rust-atomicwrites/blob/master/src/lib.rs#L200

It's not a bit deal, I can fsync parent after commit but would be nice to have this included

@andreacorbellini
Copy link
Owner

andreacorbellini commented May 15, 2024 via email

@radumarias
Copy link
Author

radumarias commented May 15, 2024 via email

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

No branches or pull requests

2 participants