DragonFly commits List (threaded) for 2007-06
DragonFly BSD
DragonFly commits List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jun 2007 10:25:05 -0700 (PDT)

dillon      2007/06/15 10:25:05 PDT

DragonFly src repository

  Modified files:
    sys/vfs/nfs          nfs_vnops.c 
  Log:
  Add vfs.nfs.pos_cache_timeout to complement vfs.nfs.neg_cache_timeout.
  Because NFSv3 is stateless, the client normally relies on the server
  returning ESTALE (Stale NFS handle) to determine whether a relookup is
  needed.  However, this does not cover namespace issues such as rename()s
  and it is possible to get into a situation where a NFS client winds up
  getting permanently out of sync with a server, requiring remounting to
  fix.
  
  The positive cache timeout will force open/stat and other namespace
  operations to re-lookup the name, even if the file handle is still
  valid.  The performance impact tested via a buildworld with a read-only
  NFS mounted /usr/src appears to be minimal.
  
  The positive cache timeout defaults to 3 second, same as the negative cache
  timeout.  The timeout can be adjusted on the fly for any new namespace
  lookups but changing the sysctl will not change any namespace lookups already
  cached until they timeout.
  
  Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>
  
  Revision  Changes    Path
  1.72      +23 -14    src/sys/vfs/nfs/nfs_vnops.c


http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_vnops.c.diff?r1=1.71&r2=1.72&f=u



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