|
From: | Phillip Susi |
Subject: | Re: making GNU ls -i (--inode) work around the linux readdir bug |
Date: | Wed, 16 Jul 2008 17:36:04 -0400 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |