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
..
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-12-27 12:15:40 +00:00
2002-12-18 10:13:54 +00:00
2002-09-11 05:05:48 +00:00
2002-03-22 21:53:29 +00:00
2002-03-22 21:53:29 +00:00
2003-09-10 19:24:35 +00:00
2003-07-01 12:30:03 +00:00
2003-06-01 19:19:59 +00:00
2003-02-08 20:37:55 +00:00
2003-04-07 12:55:00 +00:00
2002-02-01 00:57:29 +00:00
2002-12-04 15:47:41 +00:00
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2003-02-24 22:55:33 +00:00
2002-12-27 12:15:40 +00:00
2002-02-01 00:57:29 +00:00
2001-11-22 09:48:54 +00:00
2003-09-10 19:24:35 +00:00
2002-02-01 00:57:29 +00:00
2003-06-01 19:19:59 +00:00
2002-03-22 21:53:29 +00:00
2002-03-22 21:53:29 +00:00
2002-12-18 10:13:54 +00:00
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-03-22 21:53:29 +00:00
2002-12-18 10:13:54 +00:00
2002-12-19 09:40:28 +00:00
2002-03-22 21:53:29 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2003-01-04 00:15:15 +00:00
2002-02-01 00:57:29 +00:00
2002-12-18 10:13:54 +00:00
2002-10-12 16:13:41 +00:00
2002-03-22 23:42:05 +00:00
2002-12-19 09:40:28 +00:00
2002-12-27 12:15:40 +00:00
2002-02-01 00:57:29 +00:00
2002-12-19 09:40:28 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2003-02-23 00:24:03 +00:00
2002-02-01 00:57:29 +00:00
2004-04-27 09:18:49 +00:00
2002-02-01 00:57:29 +00:00
2003-02-24 22:53:26 +00:00
2003-02-11 21:56:21 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2003-02-23 01:47:49 +00:00
2002-11-17 08:54:29 +00:00
2002-02-01 00:57:29 +00:00
2002-12-19 09:40:28 +00:00
2002-02-01 00:57:29 +00:00
2002-12-04 15:47:41 +00:00
2002-02-01 00:57:29 +00:00
2002-03-22 21:53:29 +00:00
2002-03-22 21:53:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00
2002-02-01 00:57:29 +00:00