Comments (5)
but Openat2 doesn't work, the submit_and_wait still blocking even the file is created.
I failed to reproduce this problem. can you share your code?
from io-uring.
open_options.rs: https://fars.ee/0plu/
lib.rs: https://fars.ee/JV4i/
ext.rs: https://fars.ee/Kguw/
Cargo.toml https://fars.ee/xXlP/
the tests::open
run won't finish because ring.submit_and_wait(1).unwrap();
never return
other tests work well
my kernel is 5.6.10-arch1-1, it should support Openat2
from io-uring.
run cargo test with --nocapture
, the tests::open
will print some log like
Finished test [unoptimized + debuginfo] target(s) in 0.07s Running target/debug/deps/ring_io-100c7598fff98b7a running 1 test dir path "/tmp/.tmpLlv2mk" file path "/tmp/.tmpLlv2mk/test" start create file pushed submited
if submit_and_wait
return, it should print log wait done and the test will be finished
from io-uring.
You forgot to call init_ring
in OpenFuture
, which caused submit_and_wait
not to be called at all.
from io-uring.
oh.... thank you to point my mistake 🤣. after call it, the tests::open
works well now, problem solved
from io-uring.
Related Issues (20)
- After `SendZc` submission sender receives two messages HOT 2
- `SendToZc` implemetation HOT 1
- Expose access to user_data of squeue::Entry
- Help with timed events on a event loop structure
- Add changelog file HOT 1
- Building with bindgen feature fails with recent kernel headers. HOT 1
- Docs for `Read` opcode talk about setting `offset` to `-1`, yet `offset: u64` HOT 3
- Should `SubmissionQueue::push()` also check for `cq_overflow()`? HOT 3
- Corrupted message on zero copy send HOT 3
- Use rustix for direct syscall feature? HOT 1
- Any work to be done? HOT 1
- Make `Submitter::register_buffers` to accept `IoSlice{Mut}` HOT 3
- Handling `EAGAIN`/`EWOULDBLOCK` HOT 1
- Workspace for higher level API HOT 2
- Questions about `ProvideBuffers`
- More examples?
- Need help understanding `RecvMsg`
- `ReadFixed` and `WriteFixed` descriptions HOT 2
- `test_udp_recvmsg_multishot_trunc` fails HOT 13
- Async support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from io-uring.