Bug 485359 - Krusader reports Error 95 when copying non-zero size files on ZFS filesystems
Summary: Krusader reports Error 95 when copying non-zero size files on ZFS filesystems
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-11 07:22 UTC by tshen
Modified: 2024-04-11 07:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tshen 2024-04-11 07:22:40 UTC
SUMMARY
Krusader reports Error 95 when copying non-zero size files on ZFS filesystems.

STEPS TO REPRODUCE
1. Navigate to a ZFS directory
2. Ctrl-C to copy a non-zero size file
3. Ctrl-V to paste in another location in the ZFS filesystem

OBSERVED RESULT
A popup reports the following: Cannot copy file from /drive/test/file.txt to /drive/file.txt. (Errno: 95)
File is not copied.

EXPECTED RESULT
File is copied to chosen directory without error.

SOFTWARE/OS VERSIONS
Linux: Pop! OS 22.04
Kernel: 6.8.0-76060800daily20240311-generic
ZFS module version: 2.2.3-1pop1~1711451927~22.04~5612640
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3 (built against 5.15.3)

ADDITIONAL INFORMATION
Krusader has always worked on my ZFS filesystems previously. Kernel before reinstall was 6.6.10-76060610-generic. I don't know the ZFS version unfortunately, likely whatever was current for that kernel on April 1st when I reinstalled.

This began after I did a fresh reinstall of my OS. Other file managers and commands such as mv and rsync work without issue.

I am not a developer so I opened a thread here: https://discuss.kde.org/t/error-95-in-krusader-after-reinstalling-os/13647

Here is the reply I received:
Error number 95 is “operation not supported” - ENOTSUP (see errno -l | grep 95), which - from looking at some bug reports, for example this, is likely caused by the use of the copy_file_range() function that is not support by some kernels for ZFS (apparently both very old and very new).

He links to this issue for OpenZFS: https://github.com/openzfs/zfs/issues/15930