The cp --reflink command uses the FICLONERANGE ioctl() command, but not copy_file_range(); in fact, no utilities use copy_file_range(), though it should be the default.
https://lwn.net/Articles/754506/
And there is also ioctl_fideduperange(2. really confusing.. :(
https://lwn.net/Articles/754506/
And there is also
ioctl_fideduperange(2. really confusing.. :(