peadar ea85333e1c 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
..
2004-04-02 17:57:57 +00:00
2003-06-14 19:32:52 +00:00
2004-04-21 23:21:13 +00:00
Use
2003-06-06 13:46:55 +00:00
2003-06-08 10:34:00 +00:00
2003-08-18 15:25:39 +00:00
Use
2003-06-06 13:46:55 +00:00
2004-01-28 00:11:42 +00:00
2004-02-23 20:07:47 +00:00
Use
2003-06-06 13:46:55 +00:00
2004-02-04 06:32:45 +00:00
2003-08-18 15:25:39 +00:00
2004-02-11 21:09:13 +00:00
2003-08-30 13:57:31 +00:00
2004-04-21 23:23:05 +00:00