Subject: Re: bin/560: ls -i returns incorrect inodes on symlinks and root dirs
To: None <email@example.com>
From: Charles M. Hannum <firstname.lastname@example.org>
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.