vfs:fruit: implement copyfile style copy_chunk
authorRalph Boehme <slow@samba.org>
Wed, 22 Apr 2015 20:29:16 +0000 (22:29 +0200)
committerRalph Böhme <slow@samba.org>
Tue, 23 Jun 2015 09:45:23 +0000 (11:45 +0200)
commit6fd351f23bcbb20019dd967cb40220d195ce726f
tree63a029b71c7071ce25f4c9954922a2b22277aa16
parentde4304d22b7d134c0d75924e37f8289a74c7ed7d
vfs:fruit: implement copyfile style copy_chunk

Implement 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>
docs-xml/manpages/vfs_fruit.8.xml
source3/modules/vfs_fruit.c