bug#79139: cp --reflink truncates sparse files on ZFS

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <5d322c0a-3683-4614-9576-0db89cacc1b2__12358.1901121483$1754114422$gmane$org@cs.ucla.edu>
On 2025-08-01 20:56, Collin Funk wrote:
> Also, I assume this bug will cause problems in any syscall returning
> ssize_t (e.g. read, write, send).

It could well do that, yes. I suspect I haven't run into it because the 
programs I help maintain respect SYS_BUFSIZE_MAX in their calls to those 
other functions.

For now I suppose we could just document the bug as something Gnulib 
doesn't fix for those functions. If we ever run into this being a real 
problem, I suppose we could implement Gnulib workarounds though I hope 
we don't have to because they'd be a real pain due to EINTR, other errno 
values, programs expecting no partial reads on regular files, etc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.