]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: refactor extent_copy
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Jun 2020 02:18:04 +0000 (19:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Jun 2020 01:53:43 +0000 (18:53 -0700)
commit761ba28400a04ee24eefe9cd4973ec8850cd7a52
tree23a6f35361c5d914d902cbcfb9c106a1a1681e4b
parentd80820b3b540accf048fe5017dcb822e4f47afab
cp: refactor extent_copy

* src/copy.c (extent_copy): New arg SCAN, replacing
REQUIRE_NORMAL_COPY.  All callers changed.
(enum scantype): New type.
(infer_scantype): Rename from is_probably_sparse and return
the new type.  Add args FD and SCAN.  All callers changed.
src/copy.c