<table><tr><td style="">meven added a comment.
</td></tr></table><br /><div><div><p>copy <a href="https://github.com/coreutils/coreutils/blob/master/src/copy.c#L301" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/coreutils/coreutils/blob/master/src/copy.c#L301</a> use <a href="https://man7.org/linux/man-pages/man2/copy_file_range.2.html" class="remarkup-link" target="_blank" rel="noreferrer">https://man7.org/linux/man-pages/man2/copy_file_range.2.html</a> or <a href="https://github.com/coreutils/gnulib/blob/master/lib/full-write.h" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/coreutils/gnulib/blob/master/lib/full-write.h</a><br />
Did not know about copy_file_range, it was introduced in kernel 4.5 and improved/reworked in 5.3 apparently.<br />
It is simply newer than sendfile (but older than io_uring), it seems to be just almost a drop-in replacement for sendfile with reflink aka COW support for supporting fs built-in.<br />
That should be the next area for investigation, it is way simpler than our current reflink support, but it is Linux only.</p></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T12641">https://phabricator.kde.org/T12641</a></div></div><br /><div><strong>To: </strong>meven<br /><strong>Cc: </strong>apol, dfaure, Frameworks, Dolphin, ognarb, broulik, meven, sdorishlab, badbunny, waitquietly, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, LeGast00n, koehn, cblack, fbampaloukas, alexde, Codezela, feverfew, michaelh, ahmadsamir, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, rdieter, mikesomov, vkrause<br /></div>