crosvm/fuse
Yuan Yao 2d47d34a66 devices: virtio: fs: Make atomic_open use negative dentry
Currently, if the non-exsistent file is looked up by atomic_open
function, the ENOENT error will be returned even if the negative dentry
is enabled.

This CL fixes the issue by adding code to return negative dentry, it
makes guest be able to use negative dentry. This CL will take affect
with the guest kernel fix chromium:5197138.

BUG=b:316093315
TEST=tast run  -var vm.ManyFiles.enableTraceCmd=true $DUT
vm.ManyFiles.virtiofs_cached_negativecache_arcvm & check
results-chart.json and open_non_existent_second-trace.dat

Change-Id: I5020e2fb9161b697fe83dc85daa7fc81d14d5b5f
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5196737
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Yuan Yao <yuanyaogoog@chromium.org>
2024-01-18 04:03:49 +00:00
..
src
Cargo.toml