GNU bug report logs - #79139
cp --reflink truncates sparse files on ZFS

Previous Next

Package: coreutils;

Reported by: Leah Neukirchen <leah <at> vuxu.org>

Date: Fri, 1 Aug 2025 15:02:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Collin Funk <collin.funk1 <at> gmail.com>
Cc: bug-gnulib <at> gnu.org, 79139-done <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>, Leah Neukirchen <leah <at> vuxu.org>
Subject: bug#79139: cp --reflink truncates sparse files on ZFS
Date: Fri, 1 Aug 2025 22:58:58 -0700
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.




This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.