freebsd-skq/lib/libc
Peter Edwards 99ca5b8804 The FTS_NOSTAT option is an optimisation that reduces the number
of stat(2) calls by keeping an eye of the number of links a directory
has. It assumes that each subdirectory will have a hard link to its
parent, to represent the ".." node, and stops calling stat(2) when
all links are accounted for in a given directory.

This assumption is really only valid for UNIX-like filesystems: A
concrete example is NTFS. The NTFS "i-node" does contain a link
count, but most/all directories have a link count between 0 and 2
inclusive. The end result is that find on an NTFS volume won't
actually traverse the entire hierarchy of the directories passed
to it. (Those with a link count of two are not traversed at all)

The fix checks the "UFSness" of the filesystem before enabling the
optimisation.

Reviewed By: Tim Kientzle (kientzle@)
2004-05-08 15:09:02 +00:00
..
alpha
amd64 Fix Yet Another 16 byte stack alignment bug. Thankfully, this one is 2004-03-31 07:27:31 +00:00
compat-43
db
gdtoa
gen The FTS_NOSTAT option is an optimisation that reduces the number 2004-05-08 15:09:02 +00:00
gmon
i386
ia64
include When a dynamic NSS module is built and linked against a thread 2004-03-30 15:56:15 +00:00
locale Rewrite split_lines() to operate safely 2004-04-25 19:56:50 +00:00
net Unbreak world. 2004-04-21 09:50:52 +00:00
nls
posix1e
powerpc
quad
regex
rpc
sparc64
stdio Remove bogus FBSDID. 2004-05-02 20:13:29 +00:00
stdlib Simplify one condition in prev. commit: 2004-04-01 22:32:28 +00:00
stdtime
string Prepare to handle state-dependent encodings. This mainly involves not 2004-04-07 09:47:56 +00:00
sys Add mention of the fact that timeouts are silently limited to 24 hours. 2004-04-20 21:07:43 +00:00
uuid
xdr
yp
Makefile Add option NO_FP_LIBC, which disables floating-point support in 2004-05-02 10:55:07 +00:00