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

Improve AIO API #506

Merged
merged 6 commits into from
Feb 27, 2017
Merged

Improve AIO API #506

merged 6 commits into from
Feb 27, 2017

Conversation

asomers
Copy link
Member

@asomers asomers commented Feb 6, 2017

  • Turn most aio_* functions into AioCb methods
  • Add runtime checks to AioCb methods
  • Implement Drop for AioCb

Prevent immutable buffers from being used with aio_read or lio_listio
with LIO_READ.  AioCb.from_slice no longer needs to be unsafe.
If an AioCb has any in-kernel state, AioCb.drop will print a warning and
wait for it to complete.
@kamalmarhubi
Copy link
Member

Thanks for the PR! I'm not familiar with POSIX AIO, so it'll take some time for me to review it. I don't know if any of the other maintainers are or not... @posborne @fiveop?

@asomers
Copy link
Member Author

asomers commented Feb 15, 2017

Some of these changes were requested by @posborne . Perhaps he could review it?

@kamalmarhubi
Copy link
Member

r? @posborne

@posborne
Copy link
Member

@asomers Changes look good. Can you look at addressing the OSX failure reported by CI?

Also, fix style bug in AIO tests
@fiveop
Copy link
Contributor

fiveop commented Feb 27, 2017

Given that there are no more OSX failures in the CI anymore, we should merge it. Since @posborne looked at the source, he should do it :)

@posborne
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Feb 27, 2017

📌 Commit e29c0ef has been approved by posborne

homu added a commit that referenced this pull request Feb 27, 2017
Improve AIO API

- Turn most `aio_*` functions into `AioCb` methods
- Add runtime checks to `AioCb` methods
- Implement `Drop` for `AioCb`
@homu
Copy link
Contributor

homu commented Feb 27, 2017

⌛ Testing commit e29c0ef with merge 06d9b04...

@homu
Copy link
Contributor

homu commented Feb 27, 2017

☀️ Test successful - status

@homu homu merged commit e29c0ef into nix-rust:master Feb 27, 2017
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.

5 participants