On Tue, Jan 7, 2025 at 9:35 AM Anna Schumaker <anna.schumaker@xxxxxxxxxx> wrote: > > > > On 1/7/25 2:10 AM, Cedric Blancher wrote: > > On Mon, 6 Jan 2025 at 18:30, Dai Ngo <dai.ngo@xxxxxxxxxx> wrote: > >> > >> > >> On 1/4/25 10:44 PM, Cedric Blancher wrote: > >>> Good morning! > >>> > >>> Can standard Linux cp(1) use NFS4.2 CLONE? > >> > >> yes, use option '--reflink=auto' > >> > > > > Why is this not on by default? > > That's a question for the GNU coreutils people, since that's how they implemented it. > > I thought that the copy_file_range system call would try to do a clone first, but it looks like that behavior changed a while ago. Now the system call will only attempt a clone on filesystems that don't specifically implement copy. As far as I can see CLONE is still the first thing that's tried (linux 6.13-rc kernel) when cp is done. CentOS9 distro. No need to use --reflink as far I know. > > Anna > > > > > Ced > >