10 Apr
2005
10 Apr
'05
22:40
The Wednesday 2005-04-06 at 13:54 +0200, Roland Kuhn wrote:
Ah, I see. So it is not easy as well to know if a file somewhere is hardlinked somewhere else, except by comparing all inode entries in all directory lists from the same partition/disk.
No, there's also the link count (see man 3 stat, struct stat->st_nlink), which is displayed e.g. by ls -l.
Ah, I see, I hadn't noticed. Except for directories, it must mean something else. I don't see it in "man ls". [inode doc]
Don't know of a formal description, read the linux source (include/linux/fs.h and fs/inode.c seem like a starting point) ;-)
For linux programmers, and I ain't that :-) -- Cheers, Carlos Robinson