<div dir="ltr">so i finally enabled copy_file_range for the _host_ toybox because someone pointed out that we copying 16GiB zip files around in the build, and even though obviously we should stop doing that, 30s seemed unreasonable, and coreutils cp "only" took 20s because of copy_file_range.<div><br></div><div>but toybox cp with copy_file_range still takes 25s. why?</div><div><br></div><div>      if (bytes<0 || bytes>(1<<30)) len = (1<<30);<br></div><div><br></div><div>the checkin comment being:</div><div><br></div><div>Update comments and add "sanity check" from kernel commit f16acc9d9b376.<br>(The kernel's been doing this since 2019, but older kernels may not, so...)<br></div><div><br></div><div>what the kernel _actually_ does though is clamp to MAX_RW_COUNT. which is actually (INT_MAX & PAGE_MASK). which i'm assuming changes for a non-4KiB page kernel?</div><div><br></div><div>sadly 2019 is only 4 years ago, so there's a decent chunk of the 7 year rule left to run out...</div></div>