[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ls -i inefficiency
From: |
Eric Blake |
Subject: |
ls -i inefficiency |
Date: |
Thu, 23 Feb 2006 16:37:43 +0000 |
On platforms with a working dirent.d_ino, 'ls -i' is
wastefully calling [l]stat() to get the inode number
rather than using the d_ino obtained from the
readdir().
The code currently has format_needs_stat and
format_needs_type; it sounds like we also need
format_needs_inode with the fallback that on
platforms without d_ino, format_needs_inode
implies format_needs_stat.
--
Eric Blake
- ls -i inefficiency,
Eric Blake <=