Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let's say there is a hardlink created as below. touch file1 ln file1 hl_file1 In this case 'file1' holds the primary inode and 'hl_file' holds the remote inode (holds primary inode number and other required info). Now, if the 'file1' is deleted first, it's moved to a stray directory and can't be deleted because the hardlink 'hl_file1' still exists which requires primary inode. So on straydn eval, this primary inode is linked to 'hl_file1 and remote inode is removed. This is called the linkmerge/stray reintegration. So in the linkmerge case, the srcdnl is primary straydn and the destdnl is the remote. Signed-off-by: Kotresh HR <khiremat@redhat.com> Fixes: https://tracker.ceph.com/issues/61879
- Loading branch information