Re: Changes to the filesystem while find is running - comments?
- To: Martin Buchholz <Martin.Buchholz@xxxxxxx>
- Subject: Re: Changes to the filesystem while find is running - comments?
- From: "Dmitry V. Levin" <ldv@xxxxxxxxxxxx>
- Date: Mon, 22 Nov 2004 21:33:14 +0300
- Cc: James Youngman <bugtraq@xxxxxxxxxxxxxxxxxxxxxxxx>, bug-findutils@xxxxxxx, parimiv@xxxxxxxxxx, srevilak@xxxxxxxxxxxxx, bugtraq@xxxxxxxxxxxxxxxxx, levon@xxxxxxxxxxxxxxxxx
- In-reply-to: <41A22A50.8000303@xxxxxxx>
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mail-followup-to: Martin Buchholz <Martin.Buchholz@xxxxxxx>, James Youngman <bugtraq@xxxxxxxxxxxxxxxxxxxxxxxx>, bug-findutils@xxxxxxx, parimiv@xxxxxxxxxx, srevilak@xxxxxxxxxxxxx, bugtraq@xxxxxxxxxxxxxxxxx, levon@xxxxxxxxxxxxxxxxx
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
- References: <20041122102712.GA21751@xxxxxxxxxxxxxxxxxxxxxxxx> <41A22A50.8000303@xxxxxxx>
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:
pgp1sxUDIknc1.pgp
Description: PGP signature