Skip to content

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
@jorisdral
Copy link
Collaborator

Superseded by #482

@jorisdral jorisdral closed this Dec 2, 2024
@jorisdral jorisdral deleted the recursion-ninja/fsyncing-snapshots branch December 2, 2024 13:00
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.

3 participants