Module Name: src Committed By: manu Date: Thu Nov 17 02:28:21 UTC 2011
Modified Files: src/lib/libperfuse: ops.c Log Message: Copy node expiration date before comparing it, otherwise the comparison does not work (no idea why) and cached node is never used. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 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.45 src/lib/libperfuse/ops.c:1.46 --- src/lib/libperfuse/ops.c:1.45 Wed Nov 16 04:52:40 2011 +++ src/lib/libperfuse/ops.c Thu Nov 17 02:28:21 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.45 2011/11/16 04:52:40 manu Exp $ */ +/* $NetBSD: ops.c,v 1.46 2011/11/17 02:28:21 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -374,12 +374,13 @@ entry_expired(opc) puffs_cookie_t opc; { struct perfuse_node_data *pnd = PERFUSE_NODE_DATA(opc); + struct timespec expire = pnd->pnd_entry_expire; struct timespec now; if (clock_gettime(CLOCK_REALTIME, &now) != 0) DERR(EX_OSERR, "clock_gettime failed"); - return timespeccmp(&pnd->pnd_entry_expire, &now, <); + return timespeccmp(&expire, &now, <); }