Bugtraq mailing list archives
Re: Changes to the filesystem while find is running - comments?
From: "Dmitry V. Levin" <ldv () altlinux org>
Date: Mon, 22 Nov 2004 21:33:14 +0300
Hi, On Mon, Nov 22, 2004 at 10:05:04AM -0800, Martin Buchholz wrote: [...]
If we have fchdir, I see find as maintaining a stack of file descriptors to directories that have been chdir'ed into.
[...]
In general, use fchdir and fstat whenever possible.
find utility implementation should not base entirely on stack of file descriptors, due to open file descriptors limits. Same issues arise with fts(3)/ftw(3) implementations and its clones. -- ldv
Attachment:
_bin
Description:
Current thread:
- Changes to the filesystem while find is running - comments? James Youngman (Nov 22)
- Re: Changes to the filesystem while find is running - comments? Martin Buchholz (Nov 22)
- Re: Changes to the filesystem while find is running - comments? Dmitry V. Levin (Nov 22)
- Re: Changes to the filesystem while find is running - comments? James Youngman (Nov 23)
- Re: Changes to the filesystem while find is running - comments? Martin Buchholz (Nov 23)
- Re: Changes to the filesystem while find is running - comments? James Youngman (Nov 23)
- Re: Changes to the filesystem while find is running - comments? Martin Buchholz (Nov 23)
- Re: Changes to the filesystem while find is running - comments? devnull (Nov 24)
- Re: Changes to the filesystem while find is running - comments? Casper . Dik (Nov 24)
- Re: Changes to the filesystem while find is running - comments? Martin Buchholz (Nov 24)
- Re: Changes to the filesystem while find is running - comments? Casper . Dik (Nov 24)
- Re: Changes to the filesystem while find is running - comments? Martin Buchholz (Nov 22)
- Re: Changes to the filesystem while find is running - comments? James Youngman (Nov 25)
- <Possible follow-ups>
- Re: Changes to the filesystem while find is running - comments? Paul Szabo (Nov 23)