GNU bug report logs - #63850
cp fails for files > 2 GB if copy offload is unsupported

Previous Next

Package: coreutils;

Reported by: Sam James <sam <at> gentoo.org>

Date: Fri, 2 Jun 2023 15:50:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #32 received at 63850 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mike Gilbert <floppym <at> gentoo.org>, sam <at> gentoo.org, P <at> draigbrady.com,
 63850 <at> debbugs.gnu.org
Subject: Re: bug#63850: cp fails for files > 2 GB if copy offload is
 unsupported
Date: Mon, 5 Jun 2023 22:07:45 -0700
[Message part 1 (text/plain, inline)]
If we really need to cater to the practice of building for an older 
system than the build host (which to my mind is asking for trouble), 
then instead of having Gnulib try to work around the bugs in 
copy_file_range in Linux kernels before 5.3, it should simply not use 
copy_file_range in these older kernels.

In other words, something like the attached patch should be more 
reliable than the other band-aids proposed.
[0001-copy-file-range-support-building-for-older-kernels.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 42 days ago.

Previous Next


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