oberblastmeister/trashy

Invalid cross-device link error when using ZFS datasets

illode opened this issue · 2 comments

I get an error every time I try to trash something when the trash is in another dataset:

cd
touch test
trash test
# error: Error during a `trash` operation: Unknown { description: "Path: '\"/home/dominik/.local/share/Trash/files/test\"'. Message: Invalid cross-device link (os error 18)" }

For reference, I have the following ZFS datasets (there are others, but they aren't relevant):
zfs list -r -o name,mountpoint

NAME                MOUNTPOINT
Home                /home
Home/Illode         /home/illode
Home/Illode/Local   /home/illode/.local

If I run:

cd ~/.local
touch test
trash test

it works fine.

This is also the first application I've encountered that has had an issue due to ZFS. I tried trashy-cli and it works fine.
I'm using Arch with the latest everything and installed from the AUR.

ja0nz commented

Same error with btrfs👆 I can only trash files in the same subvolume where ~/.local/share/Trash resides.