From owner-cvs-src-old@FreeBSD.ORG Wed Mar 16 08:58:23 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 763211065744 for ; Wed, 16 Mar 2011 08:58:23 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 62FEA8FC17 for ; Wed, 16 Mar 2011 08:58:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2G8wN83031227 for ; Wed, 16 Mar 2011 08:58:23 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2G8wNVp031226 for cvs-src-old@freebsd.org; Wed, 16 Mar 2011 08:58:23 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201103160858.p2G8wNVp031226@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Wed, 16 Mar 2011 08:58:09 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen fts-compat.c fts.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2011 08:58:23 -0000 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