Bug 330563 - Menu under "Media Button" shows incorrect mount points when there is "bind" mounts
Summary: Menu under "Media Button" shows incorrect mount points when there is "bind" m...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.4.0-beta3 "Single Step"
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 05:03 UTC by Serge Roussak
Modified: 2021-08-24 06:31 UTC (History)
3 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 Serge Roussak 2014-01-30 05:03:28 UTC
When there is "bind" mounts then menu under "Media Button" shows incorrect mount point. I think this is because bind mount point is later in "mount" command's output than "physical" mounts.
For example:
/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /srv/http type ext4 (rw,relatime,data=ordered)
In this example /home mounted automatically based on record in a fstab. /srv/http mounted by hand with --bind option.
In a result when pressing "Media Button" we can see that sda3 mounted to /srv/http but not to /home.
At the same time MountMan shows both /home and /srv/http points while no / points.

Reproducible: Always

Steps to Reproduce:
1. Mount some dir with --bind option to some other dir.
2. Press "Media Button".
Actual Results:  
In appeared menu device shown as it were mounted to dir from "bind" command.

Expected Results:  
Device must be shown mounted to dir to which it actually mounted.
Comment 1 anniemay 2015-05-06 05:51:31 UTC
I'm getting the same error with Dolphin 14.12.3 on kubuntu vivid 15.04, KDE Frameworks 4.14.6.

I'm also using bind mounting. At startup I also use a script to mount folders under a vsftpd user's home directory. One of the directories in the vsftpd user shows up instead of my hdd under 'Devices' in Dolphins left hand pane.

For instance, I bind mount /media/Golf/Broadcasting to /home/sha/Broadcasting, and the directory that dolphin picks up for the entire drive is /home/sha/Broadcasting and not /media/Golf.

Perhaps dolphin should prioritize fstab over mtab?

For what its worth, I'm running a fresh install after a hdd fail and haven't installed much.
Comment 2 Davide Gianforte 2021-08-24 06:31:14 UTC
This version of Krusader is unmantained, please update to 2.7.2 and reopen the bug if the issue is still present.