Fix a couple of NFS client side caching snafus. First, we have to update
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 13 Mar 2005 22:17:40 +0000 (22:17 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 13 Mar 2005 22:17:40 +0000 (22:17 +0000)
commit9793c8195b66b2ccc42b2c2ddb59f26b97ce3d36
tree77ab8c255ae83ea8a608906022993909bcc0b13f
parent25b804e752e43a73ac64e9cf00081c31f7d6c96b
Fix a couple of NFS client side caching snafus.  First, we have to update
np->n_mtime if the file has not being modified locally, otherwise n_mtime
becomes stale and both the dynamic cache timeout calculation breaks and
stat() calls checking for the last modified time break.  This was causing
indeterminant operation with make for obvious reasons.

The Second problem was that we were not checking for an attrstamp of 0
(indicating a timed out entry), resulting in another incorrect timeout
calculation.
sys/vfs/nfs/nfs_subs.c