cvs commit: src/sys/kern vfs_cache.c

Matthew Dillon dillon at
Tue Mar 14 20:10:47 PST 2006

dillon      2006/03/14 20:04:55 PST

DragonFly src repository

  Modified files:
    sys/kern             vfs_cache.c 
  cache_fromdvp() uses a recursive algorithm to resolve disconnected
  directories in the namecache.  A recursion must occur until the parent
  directory is found to have a namecache record.   This is used only by
  the NFS server.
  Fix a kernel stack underflow when large directory depths are encountered
  by reverting to a much less efficient (but non recursive) algorithm.  This
  case is hit only very rarely, mainly when filesystem testing programs are
  employed.  It typically takes directories several hundred or several
  thousand deep (depending on system memory) to trigger the condition.
  Reported-by: Stefan Krueger
  Revision  Changes    Path
  1.60      +90 -6     src/sys/kern/vfs_cache.c

More information about the Commits mailing list