smb2:ioctl: support for OS X AAPL copyfile style copy_chunk
commitbb56c5f0aa938c34693402ce3f082b3a9c3c0465
authorRalph Boehme <slow@samba.org>
Wed, 22 Apr 2015 20:29:16 +0000 (22 22:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 17 Aug 2015 20:42:17 +0000 (17 22:42 +0200)
tree9d947847ee65f400e1c835e51f002b28a0a11433
parent99237419e2565b1f6c792e88023552ddcce2875e
smb2:ioctl: support for OS X AAPL copyfile style copy_chunk

Apple's special copy_chunk ioctl that requests a copy of the whole file
along with all attached metadata.

These copy_chunk requests have a chunk count of 0 that we translate to a
copy_chunk_send VFS call overloading the parameters src_off = dest_off =
num = 0.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11317

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 58480da5066bd33bc73aeb72bd17bd4797c22110)
source3/include/vfs.h
source3/smbd/smb2_ioctl_network_fs.c