copy chunk preliminary results

David Disseldorp ddiss at
Thu Nov 21 03:45:41 MST 2013

On Mon, 04 Nov 2013 10:07:22 +0000
Pádraig Brady <P at> wrote:

> So cp --reflink has CoW semantics and so probably not an
> appropriate interface for this.  Unless I'm misunderstanding,
> this SMB copy offload does result in a normal copy on the server right?

It depends on how the SMB server interprets the copy-chunk wire request.
On Btrfs, Samba can translate the request into a BTRFS_IOC_CLONE_RANGE
ioctl, in which case the same CoW semantics are observed[1]. See:

By default however, Samba (and Windows) will perform the copy on the
server-side using regular reads/writes. A generic cp --offload or
similar would probably make more sense on the client side.

Cheers, David

More information about the samba-technical mailing list