On Sat Nov 30 12:04:55 2024 +0000, Jinoh Kang wrote:
Thanks. By "is_same_file_by_path", do you mean "is_same_dentry"? A file can have multiple paths (due to symlinks) as well as realpaths (due to mountpoints). I think you're talking about dentry, not path. For example, if there are two hardlinks with different names that refer to the same file, they are two different *dentries (directory entries)* referencing the same *inode*.
Yes that's what I meant. Is there a better way to detect that?