]> git.ipfire.org Git - thirdparty/coreutils.git/commit
copy: ensure we enforce --reflink=never
authorPádraig Brady <P@draigBrady.com>
Sun, 2 May 2021 20:27:17 +0000 (21:27 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 2 May 2021 20:27:17 +0000 (21:27 +0100)
commitea9af99234031ab8d5169c8a669434e2a6b4f864
tree10c01283d104d2718f4e1eaaf5675b5c04f9a805
parente7fff54c92477a9f114b3f482b4f81a66144633e
copy: ensure we enforce --reflink=never

* src/copy.c (sparse_copy): Don't use copy_file_range()
with --reflink=never as copy_file_range() may implicitly
use acceleration techniques like reflinking.
(extent_copy): Pass through whether we allow reflinking.
(lseek_copy): Likewise.
Fixes https://bugs.gnu.org/48164
src/copy.c