From: Goldwyn Rodrigues <[email protected]> Currently, it always attempts to punch holes in files while copying. It should be making holes only when it is specifically requested.
Signed-off-by: Goldwyn Rodrigues <[email protected]> --- src/copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/copy.c b/src/copy.c index 4998c83e6..f9621495d 100644 --- a/src/copy.c +++ b/src/copy.c @@ -521,7 +521,8 @@ extent_copy (int src_fd, int dest_fd, char *buf, size_t buf_size, if ( ! sparse_copy (src_fd, dest_fd, buf, buf_size, sparse_mode == SPARSE_ALWAYS ? hole_size: 0, - true, src_name, dst_name, ext_len, &n_read, + sparse_mode == SPARSE_ALWAYS, src_name, + dst_name, ext_len, &n_read, &read_hole)) goto fail; -- 2.16.3
