Micah Cowan wrote:
He means that there _is_ no optimization. When you're applying ls -i
directly to files ("ls -i non-directory", the scenario he mentioned as
not being affected), there is no readdir, there are no directory
entries, and so there is no optimization to be made. A call to stat is
required. There is no effect to reduce.
I may be completely off-base here, but that's how I read it, at least
(how do you get inode info from dir entries you don't have?!).
<facepalm/>
Of course... I wasn't keying in on the non-directory argument for some
reason.... I was taking that as indicating that you were still doing an
ls -i in a directory that *contained* non directory children.
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils