-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Jim Meyering on 9/7/2009 3:09 AM: > ls -i now prints consistent inode numbers also for mount points. > This makes ls -i DIR less efficient on systems with dysfunctional readdir, > because ls must stat every file in order to obtain a guaranteed-valid > inode number. [bug introduced in coreutils-6.0]
On systems with working d_type, is it sufficient to limit the stat() to situations where we know that the entry might be a directory (DT_DIR or DT_UNKNOWN)? In other words, are we guaranteed that mount points can only occur atop directories, and that we can avoid the stat() for regular files? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqk5scACgkQ84KuGfSFAYAEJACgvj3wQcqKovT8g4MZXODF7JiW pL4AnR+nR3PqH9rXh1FsQPpHSxm+3tzc =MTmk -----END PGP SIGNATURE-----