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

Receive: Use explicit discards in sparse mode #116

Closed
Tracked by #117
tasket opened this issue Oct 7, 2022 · 1 comment
Closed
Tracked by #117

Receive: Use explicit discards in sparse mode #116

tasket opened this issue Oct 7, 2022 · 1 comment
Milestone

Comments

@tasket
Copy link
Owner

tasket commented Oct 7, 2022

Sparse writes to disk are currently only partially implemented, as writing sparsely over an existing file/volume presents a special problem in Python. Specifically, de-allocating old data that is being replaced with a zeroed-out chunk (e.g. where seeking ahead isn't an option) isn't supported and the current implementation simply writes zeroes there.

Using fcntl lib (or possibly ctypes) may be necessary to remove this limitation.

@tasket tasket added this to the v0.4 milestone Oct 7, 2022
@tasket tasket mentioned this issue Jan 29, 2023
12 tasks
@tasket
Copy link
Owner Author

tasket commented Feb 2, 2023

See commit f6644b9

@tasket tasket closed this as completed Feb 2, 2023
tasket added a commit that referenced this issue Feb 3, 2023
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