[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find & the use of stat
From: |
Andreas Schwab |
Subject: |
Re: find & the use of stat |
Date: |
Thu, 04 Jul 2002 10:38:27 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) |
address@hidden (Brent Rogers) writes:
|> As mentioned in the README file concerning stat:
|>
|> To gain speed, GNU find avoids statting files whenever possible.
|> It does this by:
|> 1. Checking the number of links to directories and not statting files that
|> it knows aren't directories until it encounters a test or action that
|> needs the stat info.
|> 2. Rearranging the command line, where possible, so that it can do tests
|> that don't require a stat before tests that do, in hopes that the
|> latter will be skipped because of an OR or AND. (But it only does
|> this where it will leave the output unchanged.)
|>
|> Where can I get a list of the options to "find" that do use "stat"?
Anything that needs more than the name of a directory entry has to use
stat. Grep for need_stat in parser.c, it defaults to true and the
predicates that don't need stat set it to false.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."