fslint/findup and handling of existing hardlinks
Hi,
I want to use findup to create hardlink between duplicate files in a directory. But what will happen to existing hardlinks to files outside of that directory. Which inode will be used by findup for the hardlink? The one with the highest link count, or at random, or with the lowest number, or ...?
simple example: I have two identical files /test1/a and test/b, which are not hardlinked. There is another identical file /test2/a1, which is hardlinked to /test1/a. Now I run findup -m /test2/. What is the result? Are all files hardlinked together or are only files a and b in folder /test1 linked together and /test2/a1 uses a differnt inode in the filesystem?
I searched the Internet, but couldn't find an answer to this question.
|