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

Is direct I/O supported? #292

Open
zRegle opened this issue Jul 10, 2024 · 1 comment
Open

Is direct I/O supported? #292

zRegle opened this issue Jul 10, 2024 · 1 comment

Comments

@zRegle
Copy link

zRegle commented Jul 10, 2024

Can I open a file with custom flags like O_DIRECT?

I noticed that there is no custom_flags method in tokio_uring::fs::OpenOptions, unlike tokio::fs::OpenOptions. Is there any alternative way?

Thx in advanced!

@ozgrakkurt
Copy link

tokio_uring doesn't have much real support for direct_io. In this io_uring library it just takes flags: u64 though so you can do it but it is very low level https://docs.rs/io-uring/latest/io_uring/opcode/struct.OpenAt2.html

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

No branches or pull requests

2 participants