Doing this required improving the copyfd() polyfill needed by copy_file_range() so it'll work harder to avoid short writes.