I think there is a bug which just won't happen most of the times as the constellation is rare.
Assume two files systems mounted at
/mnt
/mnt/sub
Run fddf /mnt
Assume a file somefile exists with inode 4711 in /mnt. Assume further a file different_file exists with inode 4711 in /mnt/sub (i.e. in the second file system).
Those files would be regarded as hard links although this is not true.
This could be fixed by using both device id and inode when checking for hardlinks.
I think there is a bug which just won't happen most of the times as the constellation is rare.
Assume two files systems mounted at
/mnt /mnt/sub
Run
fddf /mnt
Assume a filesomefile
exists with inode 4711 in /mnt. Assume further a filedifferent_file
exists with inode 4711 in /mnt/sub (i.e. in the second file system).Those files would be regarded as hard links although this is not true.
This could be fixed by using both device id and inode when checking for hardlinks.