Module Name: src
Committed By: snj
Date: Fri Jun 19 17:35:48 UTC 2015
Modified Files:
src/lib/libperfuse [netbsd-6]: ops.c
Log Message:
Pull up following revision(s) (requested by manu in ticket #1305):
lib/libperfuse/ops.c: revision 1.60
When lookup returns a node with null inode number, it means the ENOENT,
with negative caching. We do not implement negative caching yet, but
we honour the ENOENT.
To generate a diff of this commit:
cvs rdiff -u -r1.50.2.21 -r1.50.2.22 src/lib/libperfuse/ops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libperfuse/ops.c
diff -u src/lib/libperfuse/ops.c:1.50.2.21 src/lib/libperfuse/ops.c:1.50.2.22
--- src/lib/libperfuse/ops.c:1.50.2.21 Fri Feb 27 20:21:02 2015
+++ src/lib/libperfuse/ops.c Fri Jun 19 17:35:48 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.c,v 1.50.2.21 2015/02/27 20:21:02 martin Exp $ */
+/* $NetBSD: ops.c,v 1.50.2.22 2015/06/19 17:35:48 snj Exp $ */
/*-
* Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -434,6 +434,16 @@ node_lookup_common(struct puffs_usermoun
feo = GET_OUTPAYLOAD(ps, pm, fuse_entry_out);
+ /*
+ * Starting with ABI 7.4, inode number 0 means ENOENT,
+ * with entry_valid / entry_valid_nsec giving negative
+ * cache timeout (which we do not implement yet).
+ */
+ if (feo->attr.ino == 0) {
+ ps->ps_destroy_msg(pm);
+ return ENOENT;
+ }
+
/*
* Check for a known node, not reclaimed, with another name.
* It may have been moved, or we can lookup ../