[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extending cp to use copy_file_range system call
From: |
Jeff Layton |
Subject: |
Re: extending cp to use copy_file_range system call |
Date: |
Fri, 07 Jun 2019 08:34:05 -0400 |
User-agent: |
Evolution 3.32.2 (3.32.2-1.fc30) |
On Thu, 2019-06-06 at 16:12 -0400, Olga Kornievskaia wrote:
> Hi folks,
>
> In the spirit of my inquiries about cp functionality, I'd like to ask
> the community if there are any plans to make use of the
> copy_file_range() system call that's been available in the linux
> kernel for a number of years now. While it promises great improvement
> to the network file systems that support copy offload functionality,
> it also promises to benefit local file systems as well as it saves
> copying into the use-provided buffers during read/write operations and
> all is done in the kernel.
>
> Are there any barriers to say having an option to the cp command to
> use copy_file_range() instead of going a traditional route, would
> there be objections to something like that?
>
> Thank you.
>
> (again please cc me on the replies as I'm not on the mailing list).
>
+1
Just add new --offload / --no-offload options and wire up accordingly.
We could start with --no-offload being the default and flip that later,
once we feel that it's safe enough.
--
Jeff Layton <address@hidden>