[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes to the filesystem while find is running - comments?
From: |
Martin Buchholz |
Subject: |
Re: Changes to the filesystem while find is running - comments? |
Date: |
Fri, 26 Nov 2004 09:04:35 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20040414 |
James Youngman wrote:
> On Fri, Nov 26, 2004 at 03:23:48PM +1100, Tim Nelson wrote:
>
>
>>>What we need to do - and what we do do - is this -
>>>
>>>$tmp = <base name of subdirectory>;
>>
>> According to the description by Steve Revilak which was sent
>>through, if you at this point do:
>>
>>$tmp = $tmp + '.';
>>
>> ...then that will fix the problem. So instead of statting eg.
>>"/usr/local/bin", you'll be statting "/usr/local/bin/." (note the dot in
>>the second one).
>
>
> It's an interesting idea. However, the code we have now in
> findutils-4.2.8 works, and I'm reluctant to change this again unless
> we find there's a problem.
Also, I see some problems with the proposed solution.
We need to lstat the name without "/." to find out if
it's a symlink in any case, and stat-ing "foo/." is likely
to be a little slower than stat-ing "foo", for no good
reason. Only users of automounters should pay an automounter tax.
Martin
>
> Regards,
> James.
- Re: Changes to the filesystem while find is running - comments?, (continued)
- Re: Changes to the filesystem while find is running - comments?, Tim Nelson, 2004/11/23
- Re: Changes to the filesystem while find is running - comments?, Steve Revilak, 2004/11/23
- Re: Changes to the filesystem while find is running - comments?, Tim Nelson, 2004/11/24
- Re: Changes to the filesystem while find is running - comments?, James Youngman, 2004/11/25
- Re: Changes to the filesystem while find is running - comments?, Tim Nelson, 2004/11/25
- Re: Changes to the filesystem while find is running - comments?, James Youngman, 2004/11/26
- Re: Changes to the filesystem while find is running - comments?,
Martin Buchholz <=
- Re: Changes to the filesystem while find is running - comments?, Tim Nelson, 2004/11/29
Re: Changes to the filesystem while find is running - comments?, Paul Szabo, 2004/11/22
Re: Changes to the filesystem while find is running - comments?, Paul Szabo, 2004/11/22
Re: Changes to the filesystem while find is running - comments?, Paul Szabo, 2004/11/23