delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/02/22:28:01

X-Spam-Check-By: sourceware.org
Message-ID: <4407B7B1.1010709@byu.net>
Date: Thu, 02 Mar 2006 20:27:45 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Snapshot heads up for 20060301 2310 version
References: <BAY108-F151332E04387FA0EB25FC3B5F50 AT phx DOT gbl>
In-Reply-To: <BAY108-F151332E04387FA0EB25FC3B5F50@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

According to Karl M on 3/2/2006 2:11 PM:
>>
>> However, you're aware of the problems with mapping cygdrive to "/", are
>> you?  You'll never see the list of available drives since the special
>> cygdrive handling can't kick in for the root dir.  This also results in
>> a wrong link count for the root dir.  There's no easy way to fix that
>> and it's definitely not of any priority to us to change this.
>>
> What are the implications of having the wrong link count for the root dir?

Is the link count really wrong?  The problem occurs when the link count of
/ is greater than 1, but is not exactly 2 more than the number of
subdirectories returned by readdir.  Then programs doing recursive
traversal, such as find in findutils-4.2.27, fail to visit all
subdirectories when they take the traditional optimization that they can
stop stat'ing files to see whether there is another subdirectory to enter
once link count - 2 subdirectories have been encountered (the other two
link counts belong to . and ..).  But if readdir doesn't list drive
letters when 'cygdrive' is set to /, then the link count may be okay after
all - now it is just the issue that ls and find won't even show drive
letters when you list the contents of / (nor will tab-completion find
drive letters, although there really isn't much sense in completing on a
drive letter!).  I personally don't mount cygdrive to /, so I don't know
whether the latest snapshot gives a link count consistent with the number
of subdirectories actually listed when doing readdir on /.

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

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

iD8DBQFEB7ex84KuGfSFAYARAqt5AKCvhasZcFqIx5UJo12WIp+Sm5GE4QCeN6sN
vwLaeRnUEfzrVPJAZcz2EDs=
=lsbU
-----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019