Bug 487432

Summary: Dolphin constantly auto-mounts subdirectories of fstab-mounted SMB network share
Product: [Applications] dolphin Reporter: z411 <z411>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 24.02.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Mountpoints in Dolphin

Description z411 2024-05-23 15:41:02 UTC
Created attachment 169741 [details]
Mountpoints in Dolphin

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

Hello, I hit a kind of weird issue where whenever I browse my fstab-mounted SMB network shares in Dolphin, it constantly auto-mounts subdirectories of the share for apparently no reason (it seems they're limited to linked directories like My Documents).

STEPS TO REPRODUCE
1. Mount SMB share of a Windows disk
2. Navigate to a directory with directory links
3. See Dolphin automount every subdirectory it can find as a separate mountpoint

OBSERVED RESULT
Dolphin auto-mounts every directory link as a separate mountpoint and I end up with a ridiculously large amount of mountpoints:

//mogu/blue                                   658G  429G  230G  66% /mnt/blue
//mogu/blue/Users/Default/Application Data    658G  429G  230G  66% /mnt/blue/Users/Default/Application Data
//mogu/blue/Users/z411/Application Data       658G  429G  230G  66% /mnt/blue/Users/z411/Application Data
//mogu/blue/Users/Default/Local Settings      658G  429G  230G  66% /mnt/blue/Users/Default/Local Settings
//mogu/blue/Users/z411/Local Settings         658G  429G  230G  66% /mnt/blue/Users/z411/Local Settings
//mogu/blue/Users/Default/My Documents        658G  429G  230G  66% /mnt/blue/Users/Default/My Documents
//mogu/blue/Users/z411/My Documents           658G  429G  230G  66% /mnt/blue/Users/z411/My Documents
//mogu/blue/Users/Default/NetHood             658G  429G  230G  66% /mnt/blue/Users/Default/NetHood
//mogu/blue/Users/z411/NetHood                658G  429G  230G  66% /mnt/blue/Users/z411/NetHood
//mogu/blue/Users/Default/PrintHood           658G  429G  230G  66% /mnt/blue/Users/Default/PrintHood
//mogu/blue/Users/z411/PrintHood              658G  429G  230G  66% /mnt/blue/Users/z411/PrintHood
//mogu/blue/Users/Default/Recent              658G  429G  230G  66% /mnt/blue/Users/Default/Recent
//mogu/blue/Users/z411/Recent                 658G  429G  230G  66% /mnt/blue/Users/z411/Recent
//mogu/blue/Users/Default/SendTo              658G  429G  230G  66% /mnt/blue/Users/Default/SendTo
//mogu/blue/Users/z411/SendTo                 658G  429G  230G  66% /mnt/blue/Users/z411/SendTo
//mogu/blue/Users/Default/Start Menu          658G  429G  230G  66% /mnt/blue/Users/Default/Start Menu
//mogu/blue/Users/z411/Start Menu             658G  429G  230G  66% /mnt/blue/Users/z411/Start Menu
//mogu/blue/Users/Default/Templates           658G  429G  230G  66% /mnt/blue/Users/Default/Templates
//mogu/blue/Users/z411/Templates              658G  429G  230G  66% /mnt/blue/Users/z411/Templates
//mogu/blue/Users/z411/Documents/My Music     658G  429G  230G  66% /mnt/blue/Users/z411/Documents/My Music
//mogu/blue/Users/z411/Documents/My Pictures  658G  429G  230G  66% /mnt/blue/Users/z411/Documents/My Pictures
//mogu/blue/Users/z411/Documents/My Videos    658G  429G  230G  66% /mnt/blue/Users/z411/Documents/My Videos

EXPECTED RESULT
I should be able to navigate to those directories without getting subdirectories automounted for seemingly no reason, like this:

//mogu/blue                                   658G  429G  230G  66% /mnt/blue

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.1-arch1-1 (64-bit)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Posted evidence as attachment, apparently it happens with linked directories made by Windows. I haven't seen it happen in other file managers nor the shell.