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

Add support for Zstandard and write with O_SYNC #6

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

WallaceIT
Copy link
Contributor

  • Add support for dis images compressed with Zstandard.
  • Open target device with O_SYNC, to avoid excessive caching by the OS.

Add support for disk images compressed with Zstandard.

Signed-off-by: Francesco Valla <[email protected]>
Open the target device with the O_SYNC flag; in this way, the data for
each range will be flushed to the device before starting processing the
next one.

As a side effect, the application will return immediately after an error
instead of waiting for all the previous cached writes to be sync'ed to
the target device.

Signed-off-by: Francesco Valla <[email protected]>
@embetrix
Copy link
Owner

@WallaceIT : thanks for new feature.

@embetrix embetrix merged commit 06cf526 into embetrix:master Dec 15, 2024
2 checks passed
@WallaceIT WallaceIT deleted the zstd_and_sync branch January 30, 2025 07:39
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.

2 participants