[PATCH] OS X SMB2 AAPL copyfile extension
rb at sernet.de
Tue Jun 23 06:43:47 MDT 2015
On Wed, Jun 17, 2015 at 10:49:10AM +0200, Ralph Böhme wrote:
> Hi all,
> attached is a patchset, reviewed my metze, that implements Apple's
> copyfile style copy_chunk semantics.
> Shamelessly c/p from the bugreport  I had created for this:
> OS X SMB server and client use a special copychunk semantic that is
> triggered by a chunk count of zero.
> In response to this request, the server must copy the whole file at
> once and also copy all attached file metadata.
> OS X clients have a bug in the moment leading to file corruption if
> using standard copychunk ioctl with file sizes over 2^31 bytes, so
> this OS X style copyfile/copychunk ioctl can be used as a workaround
> until Apple fixed their client.
> Note that is indeed a single sync request that is expected to block
> the server while the copy is in progress.
> Please review&push, thanks!
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
More information about the samba-technical