-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Possible copy_file_range issue with OpenZFS 2.2.3 and Kernel 6.8-rc5 #15930
Comments
Looks like apfs-dkms on ubuntu had to make some changes with |
Thanks for reporting this, and thanks for the pointer. Can confirm that torvalds/linux@705bcfcbde38 removed
Without it, it assumes its on a pre-5.3 kernel, and returns The solution is pretty simple: also detect |
I chose to take this distraction instead of cleaning my office 😆 |
#15931 does fix my issue when applied to and refreshed against OpenZFS 2.2.3. |
You can hit this very same issue with proton as well:
|
Is it the same issue? Jetbrains ide stopped working after updating to 6.8:
|
Looks like it. |
I've just run up against this while trying 24.04 (noble) devel, and trying to setup Root on ZFS. 24.04 is to be released next month some time, and currently it's including zfs-2.2.2 with kernel 6.8. Specifically,
Quick strace shows it is indeed Bit of a pain, any dpkg script that runs systemd-sysusers ends up failing and leaves the package in a broken state :( |
You should probably report that to Ubuntu then. |
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #15930 Closes #15931
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes openzfs#15930 Closes openzfs#15931 (cherry picked from commit ef08a4d)
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #15930 Closes #15931 (cherry picked from commit ef08a4d)
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes openzfs#15930 Closes openzfs#15931 (cherry picked from commit ef08a4d)
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes openzfs#15930 Closes openzfs#15931 (cherry picked from commit ef08a4d)
Linux 6.8 removes generic_copy_file_range(), which had been reduced to a simple wrapper around splice_copy_file_range(). Detect that function directly and use it if generic_ is not available. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes openzfs#15930 Closes openzfs#15931
System information
Describe the problem you're observing
I'm getting a copy_file_range error when copying text files, but not binary files using a ruby command which uses
copy_file_range
.I've opened an issue ruby/fileutils#118 , but this might be a zfs issue, as kernel changes ought not to affect userspace.
Describe how to reproduce the problem
This occurs in a docker container. Example container inside which I can reproduce this error, running on an x86_64 host on a 6.8-rc5 kernel and OpenZFS 2.2.3:
Example commands inside that container that cause the issue:
This problem goes away if I boot into Kernel 6.7.5
Include any warning/errors/backtraces from the system logs
There are no other logs that show this issue... it doesn't occur if I copy a non-text-file.
The text was updated successfully, but these errors were encountered: