s3/smbd: redesign macOS copyfile copy-chunk
authorRalph Boehme <slow@samba.org>
Fri, 9 Jun 2017 14:50:05 +0000 (16:50 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 3 Jul 2017 17:59:08 +0000 (19:59 +0200)
commit74e018f476608429caa1c3594102485ccc17afce
tree7ac687febfd7e9e7b8c4fa08139cf7f8238fb068
parent2ad11c6920fada646cd174b53efa4cf590b80901
s3/smbd: redesign macOS copyfile copy-chunk

The copy-chunk request chunk_count can be 0 and Windows server just
returns success saying number of copied chunks is 0.

macOS client overload this after negotiating AAPL via their SMB2
extensions, meaning it's a so called copyfile request (copy whole file
and all streams).

We previously checked this at the SMB layer, with this patch we just
send this down the VFS, if vfs_fruit is loaded it implements the macOS
copyile semantics, otherwise we get Windows behavour..

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_default.c
source3/smbd/smb2_ioctl_network_fs.c