https://bugs.kde.org/show_bug.cgi?id=514681

            Bug ID: 514681
           Summary: Directories and hardlinked files are skipped if their
                    inode number matches an entry on another filesystem
    Classification: Applications
           Product: filelight
      Version First 25.08.3
       Reported In:
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY

When the scan sees that a directory entry has >=2 links, it checks if it has
seen the inode before, and if it has, skips it. This is incorrect when there
are multiple filesystems involved, as inodes are not globally unique. As mount
points have the inode of the root of the mounted filesystem rather than the
directory they were mounted on, this can lead to collisions even within the
same directory.

STEPS TO REPRODUCE
1. Mount several filesystems of the same type (tmpfs works to reproduce) on
mountpoints in the same directory
2. Run filelight

OBSERVED RESULT

Filelight skips all but one

EXPECTED RESULT

Filelight shows all of them

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux 2.18
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.3

ADDITIONAL INFORMATION

I think identifying files by a `(st_dev, st_ino)` pair should be sufficient for
most filesystems?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to