x/sys/unix: the Linux ioctl FIDEDUPERANGE wrapper is implemented wrong #43678
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?I use this version below, but I want to talk about code in master (that came from x/sys/unix).
Does this issue reproduce with the latest release?
Yes, a ioctl implementation doesn't match the linux manual.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to use the (x/)sys/unix IoctlFileDedupeRange function
What did you expect to see?
It should ressemble the ioctl described in the linux manual:
What did you see instead?
This is the ioctl in sys/unix (golang master or x/sys/unix) is like this: https://pkg.go.dev/golang.org/x/sys/unix#IoctlFileDedupeRange
destFd should be srcFd, and the 'info' member is not there, making the call unusable.
The text was updated successfully, but these errors were encountered: