This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: findutils regression between versions 4.2.27-1 and 4.3.1-3


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to William Blunn on 11/24/2006 8:05 AM:
> 
> If I run "find -noleaf -type d" over this DVD-R using findutils 4.3.1-3,
> it does NOT find all the files.

With findutils 4.3.1-3, what does "oldfind -noleaf -type d" do?  I suspect
that the problem is due to the difference in algorithms between 4.2.27
(repeated as 4.3.x's oldfind) and 4.3.x, where find moved from a
hand-rolled traversal to fts().

Also, I suspect that there may be problems due to the link counts
associated with the various directories in the traversal.  Find tries to
make an optimization that if it is only searching for directories, then
after encountering n-2 subdirectories in a directory with link count n
(where n > 1), there is no further need to keep on using readdir().  But
if this property does not hold true on your DVD-R directory structure,
then find misses out on subdirectories that occur after the n-2 mark.  Can
you do 'ls -ldU .*/ */' in one of the directories where find is missing
out on subdirectories, so that we can check for link count issues?  It
could be a cygwin bug in handling the link count of DVD drive directories.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFZwwQ84KuGfSFAYARAlAGAJ9Pl9/SY87OGdIFSH4nYtCxHawWFQCeP+DM
2G1Oj2Y6t+ZbjP99UkpmxXM=
=zSdf
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]