cloud-hypervisor / fuse-backend-rs

Rust crate for implementing FUSE backends
Apache License 2.0
130 stars 65 forks source link

ptfs: refine the way to support O_DIRECT #176

Open jiangliu opened 10 months ago

jiangliu commented 10 months ago

We have special support of the O_DIRECT flag, but the implementation has race conditions due to Time To Check & Time To Use issues. So refine the implementation by using a RwLock.