Code Monkey home page Code Monkey logo

Comments (5)

quininer avatar quininer commented on August 17, 2024

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.

Sherlock-Holo avatar Sherlock-Holo commented on August 17, 2024

@quininer

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.

Sherlock-Holo avatar Sherlock-Holo commented on August 17, 2024

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.

quininer avatar quininer commented on August 17, 2024

You forgot to call init_ring in OpenFuture, which caused submit_and_wait not to be called at all.

from io-uring.

Sherlock-Holo avatar Sherlock-Holo commented on August 17, 2024

oh.... thank you to point my mistake 🤣. after call it, the tests::open works well now, problem solved

from io-uring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.