From 648b871d3d75c5aca86cdead5af90897b0b9d29a Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 18 Oct 2019 16:51:15 -0400 Subject: [PATCH] Enable caching of negative dentries --- cmd_fusemount.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd_fusemount.c b/cmd_fusemount.c index 79ca363a..f7e8b0d3 100644 --- a/cmd_fusemount.c +++ b/cmd_fusemount.c @@ -113,8 +113,12 @@ static void bcachefs_fuse_lookup(fuse_req_t req, fuse_ino_t dir, inum = bch2_dirent_lookup(c, dir, &hash_info, &qstr); if (!inum) { - ret = -ENOENT; - goto err; + struct fuse_entry_param e = { + .attr_timeout = DBL_MAX, + .entry_timeout = DBL_MAX, + }; + fuse_reply_entry(req, &e); + return; } ret = bch2_inode_find_by_inum(c, inum, &bi);