Bug 430361 - nonexistent devices shown
Summary: nonexistent devices shown
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: panels: places (show other bugs)
Version: 20.12.0
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 03:02 UTC by David Chmelik
Modified: 2020-12-28 19:39 UTC (History)
5 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 David Chmelik 2020-12-14 03:02:47 UTC
SUMMARY

I have four servers sshfs-mountable at directories in /etc/fstab.  Two aren't even on.  A third wasn't mounted.  All three were shown in dolphin under devices section, causing confusion and taking up unnecessary space.

STEPS TO REPRODUCE
1. Add computers sshfs-mountable in /etc/fstab.
2. Leave some unmounted/off.
3. See them appear in dolphin anyway.

OBSERVED RESULT

Devices currently nonexistent are shown.

EXPECTED RESULT

Don't show devices not currently existent.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Slackware64 14-current/5.20.4
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.4.81
Comment 1 Stefan Brüns 2020-12-16 23:40:31 UTC
They appear because they *can* be mounted.
Comment 2 David Chmelik 2020-12-16 23:53:01 UTC
Clearly most *can't* be mounted in this case, but if you're showing things that can't be, you're also not showing some others that may be able to, like more than one filesystem on the same PC (can be mounted) or optical and USB drives (can't be any more than the servers are off unless a device is on/reading, but you're inconsistent here.)
Comment 3 Méven Car 2020-12-17 17:26:34 UTC
The thing is we don't have a way to know a network filesystem is not available and thus which can't be mounted.
For usb/drive or normal filesystem we simply have more information to filter out things.

If there are sshfs-mountable in /etc/fstab they do exist and all of them should be shown.

Only the user can make the choice to mount of not mount network filesystems currently.

Your issue might be this fact, you probably would like solid (the component that adds disks to the places panel) to filter sshfs/nfs mounts based on network status and if ssh hosts are reachable. This is not a simple thing.

Please note you can hide any entry from the places panel using the context menu.
Comment 4 David Chmelik 2020-12-18 00:27:56 UTC
Since they're hideable, this isn't an issue for me, but I still wonder about consistency.  I don't mount CDs, USB flash drives, or filesystems (like ISOs) just anywhere; I use classic BSD-style mount points... but out of these four types the servers are the only ones that show up in dolphin.  If there's a CD or USB flash drive inserted then these are just as mountable.  As for the .ISO filesystem, it's always there, so should always show up also, but doesn't...

/dev/sr0         /cd0             auto        noauto,user,ro,comment=x-gvfs-show   0   0
/dev/sdb1        /ud0             auto        user,noatime             0   0
server1:/        /fs0             fuse.sshfs  defaults,_netdev,allow_other,noatime,nodev,noauto   0   0
/home/u/math/ware/slackware/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso /fs5   iso9660   auto   0   0
Comment 5 Méven Car 2020-12-18 06:37:59 UTC
So it seems you are not using udisk2 for mounting this explains you inconsistency.
solid (the component that does drives/mounts detection) relies on udisk to manage dynamic mounts, i.e usb stick, cd...
But it uses mtab/fstab to detect filesystem either declared or manually mounted.
The ISO case is maybe filtered out on purpose to avoid users confusion with a live-cd iso visible.

If I understand correctly, this is not a bug anymore. If so could you change the bug status to RESOLVED WORKSFORME or NOTABUG
Comment 6 Elvis Angelaccio 2020-12-28 19:39:53 UTC
Yes I think we can close this.