-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
internal/poll: CopyFileRange returns EIO on CentOS 7 ( Linux Kernel 3.10.0-1127) when io.Copy in mounted CIFS #42334
Comments
Thanks for the report @meiyang1123. Previously: #40893, #40731. I think the fix should be similar, i.e. we should handle Given that the previous two issues were backported, I assume we should backport a fix for this to 1.15 as well? /cc @ianlancetaylor |
Change https://golang.org/cl/266940 mentions this issue: |
@meiyang1123 Could you check that https://golang.org/cl/266940 fixes the issue for you? Thanks. |
Yes ,It works for me. |
@gopherbot Please open backport issues for 1.15. This is an unlikely error, but if it occurs there is no workaround. |
Backport issue(s) opened: #42369 (for 1.15). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/267917 mentions this issue: |
…ot-handled For #42334 Fixes #42369 Change-Id: Ife51df4e7d2539a04393abfdec45e3f902975fca Reviewed-on: https://go-review.googlesource.com/c/go/+/266940 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> (cherry picked from commit 633f9e2) Reviewed-on: https://go-review.googlesource.com/c/go/+/267917 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Tobias Klauser <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
Outputrun at CentOS Linux release 7.8.2003 (Kernel 3.10.0-1127.el7.x86_64)
What did you do?
I set up a samba service , share a directory, allow user to read and create and write.
Then, mount the share directory at CentOS 7 /mnt/test
build a example:
go build -o gocopy
Run gocopy on CentOS7 :
Follow the source code,found:
On success case, copyFileRange return ENOSYS . But when copy two file on cifs will return EIO
What did you expect to see?
copy success
The text was updated successfully, but these errors were encountered: