bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does -inum require stat(2)?


From: George Spelvin
Subject: Why does -inum require stat(2)?
Date: Sat, 20 Sep 2008 17:36:33 -0400

Looking for an inode that fsck complained about, I did a find,
and noticed that it was statting every file name it found.

Hunting through the code, I see that, in tree.c, pred_inum is marked
NeedsStatInfo.  Is there a reason that struct dirent's d_ino field
can't be used instead?  That would drastically reduce the cost of this
predicate.

(This would also benefit pred_samefile.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]