Re: Why does -inum require stat(2)?

2008-09-21 Thread James Youngman
On Sat, Sep 20, 2008 at 10:36 PM, George Spelvin <[EMAIL PROTECTED]> wrote: > 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 the

Re: Why does -inum require stat(2)?

2008-09-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [adding bug-gnulib, as this is an fts issue] According to George Spelvin on 9/20/2008 3:36 PM: > 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,

Why does -inum require stat(2)?

2008-09-21 Thread George Spelvin
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 drast