Miklos Szeredi <[EMAIL PROTECTED]> wrote:

>> That's close.
>> To clarify: with the current fts implementation, the interval between the
>> initial lstat and subsequent open of the same directory may be arbitrarily
>> long, but only for 2nd or subsequent command-line arguments -- which
>> usually translates to 2nd or subsequent members of the argv array that
>> is passed to fts_open.
>
> Here's a longer strace snippet for 'find /tmp/x' (find-4.3.1+patch).
> Note, that lstat("b") and open("b") could be arbitrarily far depending
> on the size of the tree under "a".
>
> open(".", O_RDONLY|O_LARGEFILE)         = 3

Thanks.
That demonstrates that we need further clarification :-)
The same thing happens also when reading all entries from a directory.


Reply via email to