diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-18 16:51:15 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-18 16:51:15 -0400 |
commit | 648b871d3d75c5aca86cdead5af90897b0b9d29a (patch) | |
tree | bf184a8eb5f08485cb81e0c7cb3b1c2e94bca13c | |
parent | b5af93e90fcb686203e9f9569fe72ac763982775 (diff) |
Enable caching of negative dentries
-rw-r--r-- | cmd_fusemount.c | 8 |
1 files 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); |