for the reply returned ENOENT. Reported by John Haxby
+2009-05-27 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Don't call forget_node() if the lookup was negative and write()
+ for the reply returned ENOENT. Reported by John Haxby
+
2009-05-25 Miklos Szeredi <miklos@szeredi.hu>
* Add FUSE_CAP_EXPORT_SUPPORT to fuse_common.h
{
if (!err) {
struct fuse *f = req_fuse(req);
- if (fuse_reply_entry(req, e) == -ENOENT)
- forget_node(f, e->ino, 1);
+ if (fuse_reply_entry(req, e) == -ENOENT) {
+ /* Skip forget for negative result */
+ if (e->ino != 0)
+ forget_node(f, e->ino, 1);
+ }
} else
reply_err(req, err);
}