cvs commit: src/sys/vfs/nfs nfs_subs.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 13 14:17:57 PST 2005


dillon      2005/03/13 14:17:40 PST

DragonFly src repository

  Modified files:
    sys/vfs/nfs          nfs_subs.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.25      +10 -3     src/sys/vfs/nfs/nfs_subs.c


http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_subs.c.diff?r1=1.24&r2=1.25&f=u





More information about the Commits mailing list