Bug 352179 - libkf5solid5 does not handle multiple mount points
Summary: libkf5solid5 does not handle multiple mount points
Status: RESOLVED DUPLICATE of bug 349617
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.9.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-02 21:04 UTC by g9879242
Modified: 2021-05-21 15:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***