Subject: Re: bin/560: ls -i returns incorrect inodes on symlinks and root dirs
To: None <greywolf@autodesk.com>
From: Charles M. Hannum <mycroft@gnu.ai.mit.edu>
List: netbsd-bugs
Date: 11/08/1994 15:17:10
I just consulted the POSIX.1 and POSIX.2 specifications on this, and
it is my interpretation that if we were to change ls(1) to print the
inode number of the mounted-on directory, we would also have to change
stat(2) to return the st_ino and st_dev for the mounted-on directory.

I believe this would be a lose.

However, it seems like a performance win to optimize away the stat(2)s
for non-directories, and I will do this.