This is the mail archive of the cygwin-patches@sourceware.cygnus.com 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]

Re: rootdir


Chris Faylor wrote:
> 
> On Thu, Mar 16, 2000 at 02:42:26PM +0100, Corinna Vinschen wrote:
> >- Calling num_entries() only on non remote drives.
> 
> Hmm.  I wonder if this should be configurable somehow.

You remember this patch?

It wasn't _that_ kind of solution to set st_nlink to 2 in case
of remote directories!

Unfortunatley find(1) command takes st_nlink into account to get
the information if it's worth to search for subdirectories.

In case of st_nlink == 2 it knows that the subdir count is 0,
so the depth search has a surprising fast end...

I have now patched my patch to set st_nlink to the fixed value of
1 on remote directories. This is

- as fast as with the fixed value of 2,
- in a compatible way as wrong as Win32,
- doesn't disturb the work of find.

So I will check it in if you don't mind.

Corinna

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