Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2011 08:58:09 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/gen fts-compat.c fts.c
Message-ID:  <201103160858.p2G8wNVp031226@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2011-03-16 08:58:09 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         fts-compat.c fts.c 
  Log:
  SVN rev 219696 on 2011-03-16 08:58:09Z by pjd
  
  From fts.c comment:
  
  The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it knows that a
  directory could not possibly have subdirectories. This is decided by looking at
  the link count: a subdirectory would increment its parent's link count by
  virtue of its own ".." entry.  This assumption only holds for UFS-like
  filesystems that implement links and directories this way, so we must punt for
  others.
  
  It looks like ZFS is a UFS-like file system, as the above also holds for ZFS.
  Add ZFS to the list of file systems that allow for such optimization.
  
  MFC after:      1 month
  
  Revision  Changes    Path
  1.31      +1 -0      src/lib/libc/gen/fts-compat.c
  1.33      +1 -0      src/lib/libc/gen/fts.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103160858.p2G8wNVp031226>