]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: improve hole handling on squashfs
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Aug 2025 00:34:04 +0000 (17:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Aug 2025 00:40:30 +0000 (17:40 -0700)
commit39f22fe687ea0c226e3fb35e86cd5ea329180b80
tree71bb22bb850e102624b46aa0f9249aa2f5579bc9
parent306de6c2619e2a9339ade9a88d55c4940942d516
cp: improve hole handling on squashfs

Better fix for problem reported by Jeremy Allison
<https://bugs.gnu.org/79267>.
* src/copy.c (struct scan_inference): New type, replacing
union scan_inference.  All uses changed.  This is so
infer_scantype can report the first hole's offset when known.
(lseek_copy): 5th arg is now struct scan_inference const *,
not just off_t.  All uses changed.
(infer_scantype): If SEEK_SET+SEEK_HOLE do not find a hole,
fall back on ZERO_SCANTYPE.
NEWS
src/copy.c