Thiago Macieira 98f3c36ed2 QStorageInfo/Linux: re-work the mountedVolumes() check for mounted-overs
Commit ddc39eb3a46d699c23d39f0e914978199eb98cc6 ("QStorageInfo/Linux:
fix mountedVolumes() for paths mounted over") added a clever check that
did stat() on the path to figure out if it was the device that we'd just
found on /proc/self/mountinfo. But if the same device was mounted on top
again, we may have got the wrong answer.

More importantly, since kernel 6.9, btrfs subvolume mounts no longer
report the subvolume's block ID in /proc/self/mountinfo, which would
lead us to conclude every single subvolume has been mounted-over.

So let's revert back to string-matching later lines to see if any is a
parent path.

https://lore.kernel.org/linux-btrfs/2548140.Uh0CODmnKu@tjmaciei-mobl5/T/

Fixes: QTBUG-125721
Change-Id: If3345151ddf84c43a4f1fffd17d3d59fef4446dd
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
(cherry picked from commit ad968d3602eec2b1f34a9c80606e59c5a2c76a2a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-01 14:24:08 +00:00
2024-05-28 09:40:56 +00:00
2020-11-16 10:02:08 +02:00
2015-08-18 19:59:14 +00:00
2024-04-25 05:33:41 +01:00
2024-02-02 15:28:34 +00:00
2024-04-22 14:01:15 +00:00
Description
Qt Base (Core, Gui, Widgets, Network, ...)
822 MiB
Languages
C++ 84.3%
HTML 4.9%
C 3.9%
CMake 3.6%
Objective-C++ 2%
Other 0.8%