diff --git a/src/copy.c b/src/copy.c index 0dd059d2e..c5748fe71 100644 --- a/src/copy.c +++ b/src/copy.c @@ -356,6 +356,9 @@ sparse_copy (int src_fd, int dest_fd, char **abuf, size_t buf_size, { copy_debug.offload = COPY_DEBUG_UNSUPPORTED; + if (errno == EINVAL) + break; + /* Consider operation unsupported only if no data copied. For example, EPERM could occur if copy_file_range not enabled in seccomp filters, so retry with a standard copy. EPERM can