Bug 490247

Summary: Top Level Trash Not Working With Fuse Mounted Drive Pool
Product: [Applications] dolphin Reporter: jeffgt14 <jeffgt14>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 24.05.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jeffgt14 2024-07-13 21:58:35 UTC
***
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
I have multiple EXT4 internal drives mounted at /mnt/data/ which are pooled together using mergerfs/fuse and mounted at /mnt/storage/. A few of these folders are then bind mounted to home directories such as /Music, /Videos.

Problem is, if I trash any file over the fuse mount (whether from /mnt/storage/Videos/file or /home/user/Videos/file) the file gets moved across drives to my local home drive at ~/.local/share/Trash. I can delete from /mnt/data/drive/Videos/file and it will correctly sent to the top level trash of that drive but obviously that defeats the point of the drive pool.

This issue seems to only occur in Dolphin. Any other file manager (Thunar, PCManFM, etc.) all correctly trash the file from the drive pool.

STEPS TO REPRODUCE
1. Mount fuse filesystem pooling multiple drives (mergerfs likely)
2. Trash file from /mnt/storage drivepool
3. 

OBSERVED RESULT
File is moved to /home/user/.local/share/Trash and unable to be restored from Trash

EXPECTED RESULT
File moved to top level trash on same drive at /mnt/data/drive. Restore moves file back to original location on drive

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Opensuse Tumbleweed
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Not seeing any errors but there's definitely a huge delay (up to a minute) trying to trash any kind larger file (~1GB). Drivepool is not using any existing path create policies.

My mount settings from /etc/fstab:

/mnt/data/NAS-W6A159ZK:/mnt/data/WD-WCC4N1PCVASZ:/mnt/data/NAS-W6A14Z9A:/mnt/data/WD-VGH4160G /mnt/storage fuse.mergerfs noforget,inodecalc=path-hash,cache.files=off,dropcacheonclose=true,moveonenospc=true,minfreespace=20G,fsname=mergerfs,category.create=mfs,func.getattr=newest 0 0