Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid cross-device link error when using ZFS datasets #48

Open
illode opened this issue Oct 18, 2022 · 2 comments
Open

Invalid cross-device link error when using ZFS datasets #48

illode opened this issue Oct 18, 2022 · 2 comments

Comments

@illode
Copy link

illode commented Oct 18, 2022

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
Copy link

ja0nz commented Nov 5, 2022

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

@oberblastmeister
Copy link
Owner

This is caused by Byron/trash-rs#57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants