bug#79139: cp --reflink truncates sparse files on ZFS
From:
Collin Funk
Subject:
bug#79139: cp --reflink truncates sparse files on ZFS
Date:
Fri, 01 Aug 2025 21:39:44 -0700
User-agent:
Gnus/5.13 (Gnus v5.13)
Bruno Haible <bruno@clisp.org> writes:
>> + /* Work around glibc bug 33245
>
> It would be good to document the workaround in
> doc/glibc-functions/copy_file_range.texi.
Yep, I noticed as well. Just wanted to make sure I wasn't
misunderstanding the versions before doing it myself. Done with the
attached patch now.
> Collin Funk wrote:
>> Can't we make this condition only occur for glibc 2.41 and glibc 2.42?
>> The issue shouldn't occur before commit
>> 89b53077d2a58f00e7debdfe58afabe953dac60d in glibc (2024-06-25).
>
> Users are supposed to be able to create binaries with an older version of
> glibc, then upgrade their glibc. The binaries should continue to work.
Right. I seemed to have forgot that every program isn't statically
linked to glibc... Thanks.
Collin