Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-20 Thread Rolf Campbell
On 2010-08-20 07:56, Corinna Vinschen wrote: Thanks for the new strace. After some more experimenting I was finally able to reproduce the issue. The other problem you reported, about df(*), lead me onto the right track. I've checked my changes in to CVS. For testing I provided another test DL

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-20 Thread Corinna Vinschen
On Aug 19 18:11, Rolf Campbell wrote: > On 2010-08-19 13:05, Corinna Vinschen wrote: > >For further testing purposes I have uploaded a new cygwin1.dll which > > > >a) adds debug output in readdir() which prints DOS attributes as well as > >evaluated d_type value for each readdir entry to strace

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Rolf Campbell
On 2010-08-19 18:37, Andrey Repin wrote: If ATI is the junction (reparse point, or however you call it) to a top-level directory on another partition, this behavior could be explained by "exiting through the window": process enter the partition from the doors (junction), dig it, then trying to ex

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Andrey Repin
Greetings, Corinna Vinschen! > I checked the strace, and after ascending back from the ATI subdir into > the toplevel dir successfully, find appears to exit "just so", without > any trace that it even *tries* to continue to scan further subdirs. And > unfortunately there's no way to see why find

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Rolf Campbell
On 2010-08-19 12:28, Eric Blake wrote: On 08/19/2010 08:43 AM, Corinna Vinschen wrote: Hmm, digging through Cygwin's readdir code, I have a vague idea. Eric, does find honor the struct dirent d_type flag? I'm wondering if d_type is erroneously set to DT_REG for some reason. If so, we could fi

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Corinna Vinschen
On Aug 19 10:28, Eric Blake wrote: > On 08/19/2010 08:43 AM, Corinna Vinschen wrote: > > Hmm, digging through Cygwin's readdir code, I have a vague idea. > > > > Eric, does find honor the struct dirent d_type flag? I'm wondering > > if d_type is erroneously set to DT_REG for some reason. If so,

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Eric Blake
On 08/19/2010 08:43 AM, Corinna Vinschen wrote: > Hmm, digging through Cygwin's readdir code, I have a vague idea. > > Eric, does find honor the struct dirent d_type flag? I'm wondering > if d_type is erroneously set to DT_REG for some reason. If so, we > could find this out by augmenting the de

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Corinna Vinschen
On Aug 19 09:50, Rolf Campbell wrote: > NTFS Junction point: yes. I used the builtin windowns tool > "mountvol" to mount the disk in an empty directory. It's > technically mounted as "C:\.timemachine\3". > > Output from "ls -l" > [...] > I do not set the CYGWIN environmental variable when runnin

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Corinna Vinschen
On Aug 19 10:31, Corinna Vinschen wrote: > On Aug 18 18:50, Rolf Campbell wrote: > > I have an 2nd NTFS disk mounted in a directory in my primary NTFS > > disk. When I use 'find' (with no arguments), it only displays a > > small fraction of the files in the current directory. > > > > Using cygwin

Re: cygwin 1.7.6: find skipping over some directories on NTFS mount points

2010-08-19 Thread Corinna Vinschen
On Aug 18 18:50, Rolf Campbell wrote: > I have an 2nd NTFS disk mounted in a directory in my primary NTFS > disk. When I use 'find' (with no arguments), it only displays a > small fraction of the files in the current directory. > > Using cygwin 1.7.5, it displayed about 100,000 files. > Using cyg