Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125721

QStorageInfo::mountedDrives() not reporting mounted btrfs subvolumes on same device as root

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.2, 6.8.0 FF
    • 6.7.0 Beta1, 6.7.0 Beta2, 6.7.0 Beta3, 6.7.0 RC, 6.7.0 RC2, 6.7.0, 6.7.1
    • Core: I/O
    • None
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system
    • ad968d360 (dev), 8836b6777 (dev), 98f3c36ed (6.7), 55eae1b3b (6.7)

    Description

      Calling QStorageInfo::mountedDrives() does not report mounted btrfs subvolumes that exist on the same device as the root mountpoint.

      This is problematic for programs like KDE's Filelight, which call this function to prevent scanning over filesystem boundaries.

      This behavior was introduced with commit ddc39eb3a46. I have tested building qtbase without the two lines added by this commit and the behavior of Filelight returns to what is expected.

      Attachments

        1. mountinfo
          2 kB
        2. test.cpp
          0.2 kB
        For Gerrit Dashboard: QTBUG-125721
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            foxinatel Nathaniel Mason
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: