Carlos, On Saturday 02 April 2005 03:10, Carlos E. R. wrote:
...
Quick question:
Is there an easier way to list hardlinks, than comparing inode numbers?
No. Directory entries associate names with inodes (implicitly sharing the same file system device, which accounts for the prohibition on cross-device links). Each reference to a particular inode is a name for the file (or other file system entity). It's not as if one's the "original" or "real" file and the other(s) are the links. They're all coequal names for the same file system entity. This is in contrast to symbolic links, in which there's a fundamental distinction between the (symbolic) link and the target. So the only way to find what names refer to the same inode is to enumerate directory entries and compare inode numbers.
Carlos Robinson
Randall Schulz