On Wed, Jun 21, 2023 at 1:07 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > On Wed, 21 Jun 2023 at 00:53, Junichi Uekawa (上川純一) <uekawa@xxxxxxxxxx> wrote: > > > > Hi > > > > > > > > 2023年6月21日(水) 4:28 Miklos Szeredi <miklos@xxxxxxxxxx>: > >> > >> On Tue, 20 Jun 2023 at 17:14, Keiichi Watanabe <keiichiw@xxxxxxxxxxxx> wrote: > >> > > >> > Add `negative_dentry_timeout` mount option for FUSE to cache negative > >> > dentries for the specified duration. > >> > >> This is already possible, no kernel changes needed. See e.g. > >> xmp_init() in libfuse/example/passthrough.c. > >> > > > > Thank you for the pointer! > > > > So reading libfuse/fuse.c, fuse_lib_lookup does a reply with e.ino=0 err=0 (instead of ENOENT) with e.entry_timeout=negative_timeout, > > for each lookup (and there's no global configuration but that's okay) ? > > Yes. Oh, good to know! I could make it work in our VMM (crosvm) without any kernel changes. https://crrev.com/c/4630879 Thanks a lot! Keiichi > > > Thanks, > Miklos