-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 2/14/2006 7:18 AM: >>> >>>The code checks for two links (the %h) given that a subdirectory should >>>have a "." and a ".." entry. But for some reason, network drives >>>created using windows within cygwin report 1. > > Because it is too expensive for cygwin to report an accurate link count > (stat() of the remote dir would effectively have to stat every file in > that dir to see how many subdirectories there were, which would be quite > expensive over the network).
Following up on myself, more details about POSIX requirements on directory link counts, and the implications to programs trying to optimize based on link counts, can be found in this thread of the Austin group mailing list: https://www.opengroup.org/sophocles/show_archive.tpl?source=L&listname=austin-group-l&pagesize=10&first=1&searchstring=link+count&zone=F - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8eoL84KuGfSFAYARAvfEAJ9AYm3XZX+ufUO+OwQVMZEhY7WhwQCgn0ye XcAInc+REW0G4CqWar4Cldw= =hJKm -----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/