Bug 352179

Summary: libkf5solid5 does not handle multiple mount points
Product: [Frameworks and Libraries] frameworks-solid Reporter: g9879242
Component: generalAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: a.samirh78, kdelibs-bugs
Priority: NOR    
Version: 5.9.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description g9879242 2015-09-02 21:04:37 UTC
libkf5solid5 does not handle multiple mount points (there is a "Fixme" in the source code) and also does not check if the mount point is a bound mount. Unfortunately udisks2 sorts mount points alphabetically (or so it seems) So if the bound mount points path name is alphabetically lower than the mount point of the partition root the former will be used instead of the root mount point.

How to reproduce:
boot kubuntu 15.10  live dvd (KDE Frameworks 5.13.0)
sudo su
mkdir /mnt/test
mount -t auto /dev/sda1 /mnt/test
mkdir /home/kubuntu/test
mount /mnt/test/somedir /home/kubuntu/test -o bind
open for example Dolphin
clicking on the device name opens /home/kubuntu/test (/mnt/test/somedir) instead of /mnt/test because udisks2 lists /home/kubuntu/test before /mnt/test and libsollid onyl regards the first mount point
Comment 1 Justin Zobel 2021-03-09 05:53:58 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 Ahmad Samir 2021-05-21 15:18:45 UTC

*** This bug has been marked as a duplicate of bug 349617 ***