bug-coreutils
[Top][All Lists]
Advanced

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

Re: making GNU ls -i (--inode) work around the linux readdir bug


From: Micah Cowan
Subject: Re: making GNU ls -i (--inode) work around the linux readdir bug
Date: Tue, 15 Jul 2008 18:23:00 -0700
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phillip Susi wrote:
> Jim Meyering wrote:
>> When I say "not affected" I mean it.
>> Turning off the readdir optimization affects ls -i only
>> when it reads directory entries.
> 
> You mean you are only disabling the optimization and calling stat()
> anyway for directory entries, and not normal files?

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?!).

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer,
and GNU Wget Project Maintainer.
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfU1z7M8hyUobTrERAk4cAJ0Uk3ZmOSlB24I4c0Rizd5J3VcnaACfSg6b
qj/aK8q8tB2iI3E1lTPX9Nk=
=0Loq
-----END PGP SIGNATURE-----




reply via email to

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