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

Don't discard error code from rustix::fallocate #1

Merged
merged 1 commit into from Jan 16, 2023

Conversation

ryanavella
Copy link

rustix already abstracts around the differences between fallocate and posix_fallocate, specifically whether the error code is returned directly or through errno.

This will fix fs4::FileExt::allocate on platforms that do not have fallocate (e.g. FreeBSD), but Linux behavior will stay the same as before

… around the differences between fallocate/posix_fallocate, specifically whether the error code is returned directly or in errno.
@al8n al8n merged commit d5629e0 into al8n:master Jan 16, 2023
@al8n
Copy link
Owner

al8n commented Jan 16, 2023

Thank you very much!

@ryanavella
Copy link
Author

When you get the chance, would it be possible to publish a new version to crates.io? Since this is just a bugfix and you are still on 0.X.Y I think a minor bump would be fine.

@al8n
Copy link
Owner

al8n commented Jan 31, 2023

Hi, the new version published.

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.

None yet

2 participants