Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/lib/libperfuse Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/7d39c0393b09
branches:  netbsd-6
changeset: 776977:7d39c0393b09
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Jun 19 17:35:48 2015 +0000

description:
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.

diffstat:

 lib/libperfuse/ops.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r ade974652144 -r 7d39c0393b09 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Fri Jun 19 17:23:12 2015 +0000
+++ b/lib/libperfuse/ops.c      Fri Jun 19 17:35:48 2015 +0000
@@ -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 @@
 
        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 ../



Home | Main Index | Thread Index | Old Index