I have seen in this page that inodes have a link counter to know how many files (read: "directory entry") point to this inode. Is there a way to know which directories contain such entries without traversing the whole file system? Is this information stored somewhere?
struct inode {
kdev_t i_dev;
unsigned long i_ino;
umode_t i_mode;
nlink_t i_nlink;
uid_t i_uid;
gid_t i_gid;
…
};
find -inum <n> -samefile path
. – ott-- May 12 '13 at 17:39find
is used with either-inum
or-samefile
but not with both. – Hauke Laging May 12 '13 at 18:06