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

WIP: Adding in fsync-like capabilities to HasBlockIO abstractions #481

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

recursion-ninja
Copy link
Collaborator

@recursion-ninja recursion-ninja commented Nov 27, 2024

Description

Adds "file synchronization" capabilities to the blockio-api and blockio-sim packages. This includes fsync and fdatasync on POSIX systems (includes MacOS).

The new function added to the HasBlockIO type-class for "flushing" buffered data to the storage medium is hSynchronize.

I'm handing this PR off to @jorisdral.

Next steps:

  • Bikshedding whether to use American or British English, potentially renaming to hSynchronise.
  • Ensure that hSynchronise works on Linux.
  • Ensure that hSynchronise works on MacOSs.
  • Ensure that hSynchronise works on Windows.
  • Ensure that there is no other missing call sites/hooks that need to be added.

@recursion-ninja recursion-ninja changed the title WIP: Adding in fsync capabilities to HasBlockIO abstractions WIP: Adding in fsync-like capabilities to HasBlockIO abstractions Nov 27, 2024
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