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

feature: Add File::truncate for async file truncation #317

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

Conversation

vmingchen
Copy link

@vmingchen vmingchen commented Dec 5, 2024

io-uring ftruncate got supported since Linux 6.9; this adds support for that.

Changes:

  • Update libc and io-uring to their latest versions
  • Add and implement File::truncate with the help of Op<Ftruncate>
  • Add a unit test cover ftruncate

See

@vmingchen vmingchen marked this pull request as ready for review December 30, 2024 16:14
@vmingchen vmingchen changed the title Add File::truncate for async file truncation feature: Add File::truncate for async file truncation Dec 30, 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