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 directory and a file after proof is written to disk #48

Open
dshulyak opened this issue Aug 13, 2021 · 0 comments
Open

Fsync directory and a file after proof is written to disk #48

dshulyak opened this issue Aug 13, 2021 · 0 comments

Comments

@dshulyak
Copy link
Contributor

To guarantee that proof is persisted we need to:

  • fsync file (to sync inode and data)
  • directory (to sync file entry in a directory)

Otherwise, if the node crashes proof might be lost (depends if kernel was able to sync it or not in the background).

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

1 participant